public interface Parser extends HasFormat, HasSource, Groupable
Parsers are used to create type-specific Metadata
appropriate for their Format by reading from an image source.
Format| Modifier and Type | Method and Description |
|---|---|
LocationInfo[] |
getAdvancedImageUsedLocations(int imageIndex,
boolean noPixels)
Returns an array of LocationInfo objects representing the Locations needed to open
the current series.
|
LocationInfo[] |
getAdvancedUsedLocations(boolean noPixels)
Returns an array of LocationInfo objects representing the Locations needed to open
this dataset.
|
org.scijava.io.location.Location[] |
getImageUsedFiles(int imageIndex)
Returns an array of filenames needed to open the indicated image index.
|
org.scijava.io.location.Location[] |
getImageUsedFiles(int imageIndex,
boolean noPixels)
Returns an array of filenames needed to open the indicated image.
|
Metadata |
getMetadata() |
org.scijava.io.handle.DataHandle<org.scijava.io.location.Location> |
getSource() |
org.scijava.io.location.Location |
getSourceLocation() |
Set<MetadataLevel> |
getSupportedMetadataLevels()
Returns a list of MetadataLevel options for determining the granularity of
Metadata collection.
|
org.scijava.io.location.Location[] |
getUsedFiles()
Returns an array of filenames needed to open this dataset.
|
org.scijava.io.location.Location[] |
getUsedLocations(boolean noPixels)
Returns an array of filenames needed to open this dataset.
|
Metadata |
parse(org.scijava.io.handle.DataHandle<org.scijava.io.location.Location> stream)
Creates a
Metadata object from the provided image source. |
Metadata |
parse(org.scijava.io.handle.DataHandle<org.scijava.io.location.Location> stream,
Metadata meta)
Parses metadata from the provided image source to an existing
Metadata object (overwriting may occur). |
Metadata |
parse(org.scijava.io.handle.DataHandle<org.scijava.io.location.Location> stream,
Metadata meta,
SCIFIOConfig config)
/** As
parse(DataHandle, Metadata) with configuration options. |
Metadata |
parse(org.scijava.io.handle.DataHandle<org.scijava.io.location.Location> handle,
SCIFIOConfig config)
As
parse(DataHandle) with configuration options. |
Metadata |
parse(org.scijava.io.location.Location location)
Creates a
Metadata object using the provided location of an image
source. |
Metadata |
parse(org.scijava.io.location.Location location,
Metadata meta)
Parses metadata using the provided name of an image source, and writes to
an existing
Metadata object (overwriting may occur). |
Metadata |
parse(org.scijava.io.location.Location fileName,
Metadata meta,
SCIFIOConfig config)
As
parse(Location, Metadata) with configuration options. |
Metadata |
parse(org.scijava.io.location.Location fileName,
SCIFIOConfig config)
As
parse(Location) with configuration options. |
void |
updateSource(org.scijava.io.location.Location source)
Updates the source being operated on by this parser (e.g. in multi-file
formats).
|
getFormat, getFormatNamegetVersion, loggetIdentifiercontext, getContext, setContextcompareTo, getPriority, setPrioritygetInfo, setInfogetLocationfileGroupOption, hasCompanionFiles, isSingleFileMetadata parse(org.scijava.io.location.Location location) throws IOException, FormatException
Metadata object using the provided location of an image
source.location - the Location of the image source to parse.Metadata object of the appropriate type.IOExceptionFormatExceptionMetadata parse(org.scijava.io.handle.DataHandle<org.scijava.io.location.Location> stream) throws IOException, FormatException
Metadata object from the provided image source.stream - a random access handle to the image source to parse.Metadata object of the appropriate type.IOExceptionFormatExceptionMetadata parse(org.scijava.io.location.Location location, Metadata meta) throws IOException, FormatException
Metadata object (overwriting may occur).location - the Location of the image source to parse.meta - A base Metadata to fill.Metadata after parsing.IllegalArgumentException - if meta is not assignable from the
Metadata associated with this Parser's FormatIOExceptionFormatExceptionMetadata parse(org.scijava.io.handle.DataHandle<org.scijava.io.location.Location> stream, Metadata meta) throws IOException, FormatException
Metadata object (overwriting may occur).stream - A DataHandle to the image source to parse.meta - A base Metadata to fill.Metadata after parsing.IllegalArgumentException - if meta is not assignable from the
Metadata associated with this Parser's FormatIOExceptionFormatExceptionMetadata parse(org.scijava.io.location.Location fileName, SCIFIOConfig config) throws IOException, FormatException
parse(Location) with configuration options.fileName - Name of the image source to parse.config - Configuration information to use for this parse.Metadata object of the appropriate type.IOExceptionFormatExceptionMetadata parse(org.scijava.io.handle.DataHandle<org.scijava.io.location.Location> handle, SCIFIOConfig config) throws IOException, FormatException
parse(DataHandle) with configuration options.handle - a DataHandle to the image source to parse.config - Configuration information to use for this parse.Metadata object of the appropriate type.IOExceptionFormatExceptionMetadata parse(org.scijava.io.location.Location fileName, Metadata meta, SCIFIOConfig config) throws IOException, FormatException
parse(Location, Metadata) with configuration options.fileName - the Location of the image source to parse.meta - A base Metadata to fill.config - Configuration information to use for this parse.Metadata after parsing.IllegalArgumentException - if meta is not assignable from the
Metadata associated with this Parser's FormatIOExceptionFormatExceptionMetadata parse(org.scijava.io.handle.DataHandle<org.scijava.io.location.Location> stream, Metadata meta, SCIFIOConfig config) throws IOException, FormatException
parse(DataHandle, Metadata) with configuration options.stream - a random access handle to the image source to parse.meta - A base Metadata to fill.config - Configuration information to use for this parse.Metadata after parsing.IllegalArgumentException - if meta is not assignable from the
Metadata associated with this Parser's FormatIOExceptionFormatExceptionMetadata getMetadata()
org.scijava.io.handle.DataHandle<org.scijava.io.location.Location> getSource()
DataHandle read by this parser.org.scijava.io.location.Location getSourceLocation()
void updateSource(org.scijava.io.location.Location source) throws IOException
IOExceptionorg.scijava.io.location.Location[] getUsedFiles()
org.scijava.io.location.Location[] getUsedLocations(boolean noPixels)
org.scijava.io.location.Location[] getImageUsedFiles(int imageIndex)
org.scijava.io.location.Location[] getImageUsedFiles(int imageIndex, boolean noPixels)
LocationInfo[] getAdvancedUsedLocations(boolean noPixels)
LocationInfo[] getAdvancedImageUsedLocations(int imageIndex, boolean noPixels)
Set<MetadataLevel> getSupportedMetadataLevels()
Copyright © 2011–2026 SCIFIO. All rights reserved.