public abstract class AbstractSingleReaderWriterFactory extends java.lang.Object implements SingleReaderWriterFactory
| Constructor and Description |
|---|
AbstractSingleReaderWriterFactory() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkFormat(java.io.InputStream stream,
ReadWriteParameterMap parameters)
Implementations should read the start of the stream here and determine whether the content could be valid
according to the target format.
|
protected abstract JPhyloIOFormatInfo |
createFormatInfo() |
JPhyloIOFormatInfo |
getFormatInfo()
Returns an information objects describing the target format and providing according file filters.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcheckFormat, getReader, getReader, getWriter, hasReader, hasWriterpublic AbstractSingleReaderWriterFactory()
public boolean checkFormat(java.io.InputStream stream, ReadWriteParameterMap parameters) throws java.lang.Exception
SingleReaderWriterFactorycheckFormat in interface SingleReaderWriterFactorystream - the stream to read the first bytes fromparameters - the parameters map that would also be used to create a readertrue if the tested stream may be in the target format or false if the stream is not
in valid target formatjava.lang.Exceptionprotected abstract JPhyloIOFormatInfo createFormatInfo()
public JPhyloIOFormatInfo getFormatInfo()
SingleReaderWriterFactorygetFormatInfo in interface SingleReaderWriterFactory