public class DefaultParser extends AbstractParser<DefaultMetadata> implements DefaultComponent
Parser implementation.
Populates the following fields:
Parser| Constructor and Description |
|---|
DefaultParser() |
| Modifier and Type | Method and Description |
|---|---|
Format |
getFormat()
Provides a link back to the format associated with this component.
|
protected void |
typedParse(org.scijava.io.handle.DataHandle<org.scijava.io.location.Location> stream,
DefaultMetadata 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, getFormatNamegetVersion, loggetInfo, getPriority, setInfo, setPriority, toStringcontext, getContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetFormatNamegetVersion, loggetIdentifiercontext, getContext, setContextcompareTo, getPriority, setPrioritygetInfo, setInfogetLocationfileGroupOption, hasCompanionFiles, isSingleFilepublic Format getFormat()
HasFormatgetFormat in interface HasFormatgetFormat in class AbstractHasFormatprotected void typedParse(org.scijava.io.handle.DataHandle<org.scijava.io.location.Location> stream, DefaultMetadata 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<DefaultMetadata>IOExceptionFormatExceptionCopyright © 2011–2026 SCIFIO. All rights reserved.