public static class NRRDFormat.Parser extends AbstractParser<NRRDFormat.Metadata>
| Constructor and Description |
|---|
Parser() |
| Modifier and Type | Method and Description |
|---|---|
int |
fileGroupOption(org.scijava.io.location.Location id)
Returns an int indicating that we cannot, must, or might group the files in
a given dataset.
|
org.scijava.io.location.Location[] |
getImageUsedFiles(int imageIndex,
boolean noPixels)
Returns an array of filenames needed to open the indicated image.
|
boolean |
hasCompanionFiles()
Returns true if this format supports multi-file datasets.
|
boolean |
isSingleFile(org.scijava.io.location.Location id)
Returns true if this is a single-file format.
|
NRRDFormat.Metadata |
parse(org.scijava.io.handle.DataHandle<org.scijava.io.location.Location> stream,
NRRDFormat.Metadata meta,
SCIFIOConfig config)
Generic-parameterized
parse method, using
TypedMetadata to avoid type erasure conflicts with
Parser.parse(DataHandle, Metadata). |
protected void |
typedParse(org.scijava.io.handle.DataHandle<org.scijava.io.location.Location> stream,
NRRDFormat.Metadata meta,
SCIFIOConfig config)
A helper method, called by
AbstractParser.parse(DataHandle, TypedMetadata). |
close, getAdvancedImageUsedLocations, getAdvancedUsedLocations, getImageUsedFiles, getMetadata, getSource, getSourceLocation, getSupportedMetadataLevels, getUsedFiles, getUsedLocations, parse, parse, parse, parse, parse, parse, parse, parse, parse, parse, setMetaData, updateSourcecloseasBrowsableLocation, asBrowsableLocation, getFormat, getFormatNamegetVersion, loggetInfo, getPriority, setInfo, setPriority, toStringcontext, getContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetFormat, getFormatNamegetVersion, loggetIdentifiercontext, getContext, setContextcompareTo, getPriority, setPrioritygetInfo, setInfogetLocationpublic org.scijava.io.location.Location[] getImageUsedFiles(int imageIndex, boolean noPixels)
ParsergetImageUsedFiles in interface ParsergetImageUsedFiles in class AbstractParser<NRRDFormat.Metadata>public NRRDFormat.Metadata parse(org.scijava.io.handle.DataHandle<org.scijava.io.location.Location> stream, NRRDFormat.Metadata meta, SCIFIOConfig config) throws IOException, FormatException
TypedParserparse method, using
TypedMetadata to avoid type erasure conflicts with
Parser.parse(DataHandle, Metadata).parse in interface TypedParser<NRRDFormat.Metadata>parse in class AbstractParser<NRRDFormat.Metadata>IOExceptionFormatExceptionParser.parse(DataHandle, Metadata, SCIFIOConfig)protected void typedParse(org.scijava.io.handle.DataHandle<org.scijava.io.location.Location> stream, NRRDFormat.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<NRRDFormat.Metadata>IOExceptionFormatExceptionpublic boolean hasCompanionFiles()
GroupablehasCompanionFiles in interface GroupablehasCompanionFiles in class AbstractGroupablepublic boolean isSingleFile(org.scijava.io.location.Location id) throws FormatException, IOException
GroupableisSingleFile in interface GroupableisSingleFile in class AbstractGroupableFormatExceptionIOExceptionpublic int fileGroupOption(org.scijava.io.location.Location id) throws FormatException, IOException
GroupablefileGroupOption in interface GroupablefileGroupOption in class AbstractGroupableFormatExceptionIOExceptionCopyright © 2011–2026 SCIFIO. All rights reserved.