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, parseprivate 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 ParserJXRExceptionprivate void checkFileSize()
throws IOException,
JXRException
IOExceptionJXRExceptionprivate void checkHeaderLength()
throws IOException,
JXRException
IOExceptionJXRExceptionprivate void checkFileStructureVersion()
throws IOException,
JXRException
IOExceptionJXRExceptionprivate void checkHeaderBOM()
throws IOException,
JXRException
IOExceptionJXRExceptionprivate void checkIfValidJpegXr()
throws IOException,
JXRException
IOExceptionJXRExceptionprivate void calculateIFDOffset()
throws IOException,
JXRException
IOExceptionJXRExceptionpublic void close()
throws IOException
close in class ParserIOExceptionCopyright © 2015 Open Microscopy Environment