public class JPhyloIOContentExtensionFileFilter extends ContentExtensionFileFilter implements JPhyloIOFormatSpecificObject
ContentExtensionFileFilter.TestStrategyEXTENSION_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, setTestStrategyaccept, getDefaultExtension, getDescription, getExtensions, getExtensionsAsStringpublic 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 ContentExtensionFileFilterjava.lang.Exceptionpublic java.lang.String getFormatID()
JPhyloIOFormatSpecificObjectJPhyloIOReaderWriterFactory.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 JPhyloIOFormatSpecificObjectJPhyloIOReaderWriterFactory.getFormatInfo(String)