public final class FileParser extends Parser
Modifier and Type | Field and Description |
---|---|
private int |
encoderVersion |
private long |
fileSize |
private boolean |
isLittleEndian |
private int |
rootIFDOffset |
parsingOffset, stream
Constructor and Description |
---|
FileParser(RandomAccessInputStream stream) |
Modifier and Type | Method and Description |
---|---|
private void |
calculateIFDOffset() |
private void |
checkFileSize() |
private void |
checkFileStructureVersion() |
private void |
checkHeaderBOM() |
private void |
checkHeaderLength() |
private void |
checkIfValidJpegXr() |
void |
close() |
int |
getEncoderVersion() |
long |
getFileSize() |
int |
getRootIFDOffset() |
boolean |
isLittleEndian() |
void |
parse(long parsingOffset) |
getParentParser, parse
private int encoderVersion
private boolean isLittleEndian
private int rootIFDOffset
private long fileSize
public FileParser(RandomAccessInputStream stream)
public int getEncoderVersion()
public long getFileSize()
public boolean isLittleEndian()
public int getRootIFDOffset()
public void parse(long parsingOffset) throws JXRException
parse
in class Parser
JXRException
private void checkFileSize() throws IOException, JXRException
IOException
JXRException
private void checkHeaderLength() throws IOException, JXRException
IOException
JXRException
private void checkFileStructureVersion() throws IOException, JXRException
IOException
JXRException
private void checkHeaderBOM() throws IOException, JXRException
IOException
JXRException
private void checkIfValidJpegXr() throws IOException, JXRException
IOException
JXRException
private void calculateIFDOffset() throws IOException, JXRException
IOException
JXRException
public void close() throws IOException
close
in class Parser
IOException
Copyright © 2016 Open Microscopy Environment