public class JPhyloIOContentExtensionFileFilter extends ContentExtensionFileFilter implements JPhyloIOFormatSpecificObject
ContentExtensionFileFilter.TestStrategy
EXTENSION_SEPARATOR
Constructor and Description |
---|
JPhyloIOContentExtensionFileFilter(SingleReaderWriterFactory factory,
ReadWriteParameterMap defaultParamaters,
java.lang.String description,
boolean addExtensionListToDescription,
ContentExtensionFileFilter.TestStrategy testStrategy,
boolean acceptFilesWithExceptions,
java.lang.String... extensions) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
acceptContent(java.io.FileInputStream stream) |
java.lang.String |
getFormatID()
Returns a string ID uniquely identifying the target format of this instance.
|
accept, acceptContent, getTestStrategy, isAcceptFilesWithExceptions, setAcceptFilesWithExceptions, setTestStrategy
accept, getDefaultExtension, getDescription, getExtensions, getExtensionsAsString
public JPhyloIOContentExtensionFileFilter(SingleReaderWriterFactory factory, ReadWriteParameterMap defaultParamaters, java.lang.String description, boolean addExtensionListToDescription, ContentExtensionFileFilter.TestStrategy testStrategy, boolean acceptFilesWithExceptions, java.lang.String... extensions)
protected boolean acceptContent(java.io.FileInputStream stream) throws java.lang.Exception
acceptContent
in class ContentExtensionFileFilter
java.lang.Exception
public java.lang.String getFormatID()
JPhyloIOFormatSpecificObject
JPhyloIOReaderWriterFactory.getFormatInfo(String)
.
Third party developers that create readers or writers for additional formats must make sure to use a globally unique
format ID. It is strongly recommended to use owned reverse domain names for this (e.g.
org.example.additionalformat
).
getFormatID
in interface JPhyloIOFormatSpecificObject
JPhyloIOReaderWriterFactory.getFormatInfo(String)