public static class JPEG2000Format.Parser extends AbstractParser<JPEG2000Format.Metadata>
| Constructor and Description |
|---|
Parser() |
| Modifier and Type | Method and Description |
|---|---|
long |
getCodestreamOffset()
Retrieves the offset to the first contiguous codestream.
|
Integer |
getCodestreamPixelType()
Returns the pixel type as specified in the header.
|
Short |
getCodestreamSizeC()
Returns the number of channels the image has as specified in the header.
|
Integer |
getCodestreamSizeX()
Returns the width of the image as specified in the header.
|
Integer |
getCodestreamSizeY()
Returns the height of the image as specified in the header.
|
ArrayList<String> |
getComments()
Retrieves the list of comments stored in the file.
|
Integer |
getHeaderPixelType()
Returns the pixel type as specified in the header.
|
Short |
getHeaderSizeC()
Returns the number of channels the image has as specified in the header.
|
Integer |
getHeaderSizeX()
Returns the width of the image as specified in the header.
|
Integer |
getHeaderSizeY()
Returns the height of the image as specified in the header.
|
boolean |
isRawCodestream()
Whether or not the codestream is raw and not JP2 boxed.
|
void |
parse(org.scijava.io.handle.DataHandle<org.scijava.io.location.Location> stream,
JPEG2000Format.Metadata meta,
long maximumReadOffset) |
protected void |
typedParse(org.scijava.io.handle.DataHandle<org.scijava.io.location.Location> stream,
JPEG2000Format.Metadata meta,
SCIFIOConfig config)
A helper method, called by
AbstractParser.parse(DataHandle, TypedMetadata). |
close, getAdvancedImageUsedLocations, getAdvancedUsedLocations, getImageUsedFiles, getImageUsedFiles, getMetadata, getSource, getSourceLocation, getSupportedMetadataLevels, getUsedFiles, getUsedLocations, parse, parse, parse, parse, parse, parse, parse, parse, parse, parse, parse, setMetaData, updateSourcefileGroupOption, hasCompanionFiles, isSingleFilecloseasBrowsableLocation, asBrowsableLocation, getFormat, getFormatNamegetVersion, loggetInfo, getPriority, setInfo, setPriority, toStringcontext, getContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetFormat, getFormatNamegetVersion, loggetIdentifiercontext, getContext, setContextcompareTo, getPriority, setPrioritygetInfo, setInfogetLocationfileGroupOption, hasCompanionFiles, isSingleFilepublic void parse(org.scijava.io.handle.DataHandle<org.scijava.io.location.Location> stream, JPEG2000Format.Metadata meta, long maximumReadOffset) throws IOException
IOExceptionprotected void typedParse(org.scijava.io.handle.DataHandle<org.scijava.io.location.Location> stream, JPEG2000Format.Metadata meta, SCIFIOConfig config) throws IOException, FormatException
AbstractParserAbstractParser.parse(DataHandle, TypedMetadata).
Allows for boilerplate code to come after parsing, specifically calls to
Metadata.populateImageMetadata().
This method should be implemented to populate any format-specific Metadata.
NB: if a Format requires type-specific parsing to occur before the Abstract
layer, Override #parse(String, TypedMetadata) instead.
typedParse in class AbstractParser<JPEG2000Format.Metadata>IOExceptionFormatExceptionpublic long getCodestreamOffset()
public ArrayList<String> getComments()
public boolean isRawCodestream()
true if the codestream is raw and false
otherwise.public Integer getHeaderSizeX()
public Integer getHeaderSizeY()
public Short getHeaderSizeC()
public Integer getHeaderPixelType()
public Integer getCodestreamSizeX()
public Integer getCodestreamSizeY()
public Short getCodestreamSizeC()
public Integer getCodestreamPixelType()
Copyright © 2011–2026 SCIFIO. All rights reserved.