public abstract class FormatHandler extends java.lang.Object implements IFormatHandler
| Modifier and Type | Field and Description | 
|---|---|
| static java.lang.String[] | COMPRESSION_SUFFIXESSuffixes for supported compression types. | 
| protected java.lang.String | currentIdName of current file. | 
| protected java.lang.String | formatName of this file format. | 
| protected static org.slf4j.Logger | LOGGER | 
| protected MetadataOptions | metadataOptionsMetadata parsing options. | 
| protected java.lang.String[] | suffixesValid suffixes for this file format. | 
| Constructor and Description | 
|---|
| FormatHandler(java.lang.String format,
             java.lang.String suffix)Constructs a format handler with the given name and default suffix. | 
| FormatHandler(java.lang.String format,
             java.lang.String[] suffixes)Constructs a format handler with the given name and default suffixes. | 
| Modifier and Type | Method and Description | 
|---|---|
| static boolean | checkSuffix(java.lang.String name,
           java.lang.String suffix)Performs suffix matching for the given filename. | 
| static boolean | checkSuffix(java.lang.String name,
           java.lang.String[] suffixList)Performs suffix matching for the given filename. | 
| java.lang.String | getFormat()Gets the name of this file format. | 
| MetadataOptions | getMetadataOptions() | 
| java.lang.Class<?> | getNativeDataType()Returns the native data type of image planes for this reader, as returned
 by  IFormatReader.openPlane(int, int, int, int, int)orIFormatWriter.savePlane(int, java.lang.Object). | 
| java.lang.String[] | getSuffixes()Gets the default file suffixes for this file format. | 
| java.util.Set<MetadataLevel> | getSupportedMetadataLevels() | 
| boolean | isThisType(java.lang.String name)Checks if a file matches the type of this format handler. | 
| void | setMetadataOptions(MetadataOptions options) | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetIdprotected static final org.slf4j.Logger LOGGER
public static final java.lang.String[] COMPRESSION_SUFFIXES
protected java.lang.String format
protected java.lang.String[] suffixes
protected java.lang.String currentId
protected MetadataOptions metadataOptions
public FormatHandler(java.lang.String format,
                     java.lang.String suffix)
public FormatHandler(java.lang.String format,
                     java.lang.String[] suffixes)
public java.util.Set<MetadataLevel> getSupportedMetadataLevels()
getSupportedMetadataLevels in interface IMetadataConfigurablepublic MetadataOptions getMetadataOptions()
getMetadataOptions in interface IMetadataConfigurablepublic void setMetadataOptions(MetadataOptions options)
setMetadataOptions in interface IMetadataConfigurablepublic boolean isThisType(java.lang.String name)
isThisType in interface IFormatHandlerpublic java.lang.String getFormat()
IFormatHandlergetFormat in interface IFormatHandlerpublic java.lang.String[] getSuffixes()
IFormatHandlergetSuffixes in interface IFormatHandlerpublic java.lang.Class<?> getNativeDataType()
IFormatHandlerIFormatReader.openPlane(int, int, int, int, int) or IFormatWriter.savePlane(int, java.lang.Object).
 For most readers this type will be a byte array; however, some readers
 call external APIs that work with other types such as
 BufferedImage.getNativeDataType in interface IFormatHandlerpublic static boolean checkSuffix(java.lang.String name,
                                  java.lang.String suffix)
public static boolean checkSuffix(java.lang.String name,
                                  java.lang.String[] suffixList)
Copyright © 2023 Open Microscopy Environment