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, wait
checkFormat, getReader, getReader, getWriter, hasReader, hasWriter
public AbstractSingleReaderWriterFactory()
public boolean checkFormat(java.io.InputStream stream, ReadWriteParameterMap parameters) throws java.lang.Exception
SingleReaderWriterFactory
checkFormat
in interface SingleReaderWriterFactory
stream
- 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.Exception
protected abstract JPhyloIOFormatInfo createFormatInfo()
public JPhyloIOFormatInfo getFormatInfo()
SingleReaderWriterFactory
getFormatInfo
in interface SingleReaderWriterFactory