public class PDEFactory extends AbstractXMLFactory implements PDEConstants, JPhyloIOFormatIDs
AMINO_TYPE, ATTR_ALIGNMENT_LENGTH, ATTR_CHARSET_LABEL, ATTR_COLOR, ATTR_DATATYPE, ATTR_ID, ATTR_SEQUENCE_COUNT, ATTR_SEQUENCE_INDEX, ATTR_VERSION, ATTR_VISIBILITY, DNA_TYPE, FIRST_CUSTOM_META_ID, META_ID_ACCESS_NUMBER, META_ID_COMMENT, META_ID_LINKED_FILE, META_ID_SEQUENCE_LABEL, META_TYPE_FILE, META_TYPE_NUMBER, META_TYPE_STRING, PDE_FORMAT_NAME, PDE_NAMESPACE_PREFIX, PDE_PREDICATE_NAMESPACE, PREDICATE_ACCESS_NUMBER, PREDICATE_CHARSET_COLOR, PREDICATE_CHARSET_VISIBILITY, PREDICATE_COMMENT, PREDICATE_DESCRIPTION, PREDICATE_LINKED_FILE, SEQUENCE_END, TAG_ALIGNMENT, TAG_BLOCK, TAG_CHARSET, TAG_CHARSETS, TAG_DESCRIPTION, TAG_HEADER, TAG_MATRIX, TAG_META_TYPE_DEFINITIONS, TAG_ROOT, TAG_SEQUENCE_INFORMATION, TAG_SEQUENCE_META_INFORMATION, UNKNOWN_CHARS
FASTA_FORMAT_ID, FORMAT_ID_PREFIX, MEGA_FORMAT_ID, NEWICK_FORMAT_ID, NEXML_FORMAT_ID, NEXUS_FORMAT_ID, PDE_FORMAT_ID, PHYLIP_FORMAT_ID, PHYLOXML_FORMAT_ID, SEQUENTIAL_PHYLIP_FORMAT_ID, XTG_FORMAT_ID
Constructor and Description |
---|
PDEFactory() |
Modifier and Type | Method and Description |
---|---|
protected JPhyloIOFormatInfo |
createFormatInfo() |
JPhyloIOEventReader |
getReader(java.io.InputStream stream,
ReadWriteParameterMap parameters)
Creates a new reader instance for the target format of this factory.
|
JPhyloIOEventReader |
getReader(java.io.Reader reader,
ReadWriteParameterMap parameters)
Creates a new reader instance for the target format of this factory.
|
JPhyloIOEventWriter |
getWriter()
Creates a new writer instance for the target format of this factory.
|
boolean |
hasReader()
Determines whether this factory is able to create reader instances for its target format.
|
boolean |
hasWriter()
Determines whether this factory is able to create writer instances for its target format.
|
checkFormat, checkRootTag, getRootTag
checkFormat, getFormatInfo
public PDEFactory()
public JPhyloIOEventReader getReader(java.io.InputStream stream, ReadWriteParameterMap parameters) throws java.io.IOException, javax.xml.stream.XMLStreamException
SingleReaderWriterFactory
getReader
in interface SingleReaderWriterFactory
stream
- the stream to provide the content for the readerparameters
- the parameter map for the new reader instancejava.io.IOException
javax.xml.stream.XMLStreamException
public JPhyloIOEventReader getReader(java.io.Reader reader, ReadWriteParameterMap parameters) throws java.io.IOException, javax.xml.stream.XMLStreamException
SingleReaderWriterFactory
getReader
in interface SingleReaderWriterFactory
parameters
- the parameter map for the new reader instancenull
if this factory is not able to create readersjava.io.IOException
javax.xml.stream.XMLStreamException
SingleReaderWriterFactory.hasReader()
public JPhyloIOEventWriter getWriter()
SingleReaderWriterFactory
getWriter
in interface SingleReaderWriterFactory
null
if this factory is not able to create writersSingleReaderWriterFactory.hasWriter()
public boolean hasReader()
SingleReaderWriterFactory
hasReader
in interface SingleReaderWriterFactory
true
if creating readers is supported or false
otherwisepublic boolean hasWriter()
SingleReaderWriterFactory
hasWriter
in interface SingleReaderWriterFactory
true
if creating writers is supported or false
otherwiseprotected JPhyloIOFormatInfo createFormatInfo()
createFormatInfo
in class AbstractSingleReaderWriterFactory