Package | Description |
---|---|
info.bioinfweb.jphyloio |
The main package of JPhyloIO.
|
info.bioinfweb.jphyloio.factory |
Contains interfaces and general implementations for creating JPhyloIO readers and writers related to
JPhyloIOReaderWriterFactory . |
info.bioinfweb.jphyloio.formats.fasta |
Contains classes for reading from and writing to streams/files in FASTA format.
|
info.bioinfweb.jphyloio.formats.mega |
Contains classes for reading from and writing to streams/files in MEGA format.
|
info.bioinfweb.jphyloio.formats.newick |
Contains classes for reading from and writing to streams/files in Newick tree format.
|
info.bioinfweb.jphyloio.formats.nexml |
Contains classes for reading from and writing to streams/files in NeXML format.
|
info.bioinfweb.jphyloio.formats.nexus |
Contains classes for reading from and writing to streams/files in Nexus format.
|
info.bioinfweb.jphyloio.formats.pde |
Contains classes for reading from streams/files in PDE format.
|
info.bioinfweb.jphyloio.formats.phylip |
Contains classes for reading from and writing to streams/files in Phylip format.
|
info.bioinfweb.jphyloio.formats.phyloxml |
Contains classes for reading from and writing to streams/files in PhyloXML format.
|
info.bioinfweb.jphyloio.formats.text |
Contains classes implementing shared functionality for reading from and writing to streams/files in text formats.
|
info.bioinfweb.jphyloio.formats.xml |
Contains classes implementing shared functionality for reading from and writing to streams/files in XML formats.
|
info.bioinfweb.jphyloio.formats.xtg |
Contains classes for reading from and writing to streams/files in XTG format.
|
info.bioinfweb.jphyloio.push |
Contains classes that allow push-parsing.
|
info.bioinfweb.jphyloio.utils |
Contains general tool classes of JPhyloIO.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractEventReader<P extends ReaderStreamDataProvider<? extends AbstractEventReader<P>>>
Basic implementation for event readers in PhyloIO.
|
Modifier and Type | Method and Description |
---|---|
JPhyloIOEventReader |
SingleReaderWriterFactory.getReader(java.io.InputStream stream,
ReadWriteParameterMap parameters)
Creates a new reader instance for the target format of this factory.
|
JPhyloIOEventReader |
SingleReaderWriterFactory.getReader(java.io.Reader reader,
ReadWriteParameterMap parameters)
Creates a new reader instance for the target format of this factory.
|
JPhyloIOEventReader |
JPhyloIOReaderWriterFactory.getReader(java.lang.String formatID,
java.io.File file,
ReadWriteParameterMap parameters) |
JPhyloIOEventReader |
JPhyloIOReaderWriterFactory.getReader(java.lang.String formatID,
java.io.InputStream stream,
ReadWriteParameterMap parameters) |
JPhyloIOEventReader |
JPhyloIOReaderWriterFactory.getReader(java.lang.String formatID,
java.io.Reader reader,
ReadWriteParameterMap parameters) |
JPhyloIOEventReader |
JPhyloIOReaderWriterFactory.guessReader(java.io.File file,
ReadWriteParameterMap parameters)
Tries to determine the format of the contents of the specified file as described in the documentation of
JPhyloIOReaderWriterFactory.guessFormat(File) and than creates a reader for the according format from that stream. |
JPhyloIOEventReader |
JPhyloIOReaderWriterFactory.guessReader(java.io.InputStream stream,
ReadWriteParameterMap parameters)
Tries to determine the format of the contents of the specified input stream as described in the documentation of
JPhyloIOReaderWriterFactory.guessFormat(InputStream) , resets the input stream and than creates a reader for the according format
from that stream. |
Modifier and Type | Class and Description |
---|---|
class |
FASTAEventReader
Event based reader for FASTA alignment files.
|
Modifier and Type | Method and Description |
---|---|
JPhyloIOEventReader |
FASTAFactory.getReader(java.io.InputStream stream,
ReadWriteParameterMap parameters) |
JPhyloIOEventReader |
FASTAFactory.getReader(java.io.Reader reader,
ReadWriteParameterMap parameters) |
Modifier and Type | Class and Description |
---|---|
class |
MEGAEventReader
Event based reader for MEGA alignment files.
|
Modifier and Type | Method and Description |
---|---|
JPhyloIOEventReader |
MEGAFactory.getReader(java.io.InputStream stream,
ReadWriteParameterMap parameters) |
JPhyloIOEventReader |
MEGAFactory.getReader(java.io.Reader reader,
ReadWriteParameterMap parameters) |
Modifier and Type | Class and Description |
---|---|
class |
NewickEventReader
Reads tree files in Newick format.
|
Modifier and Type | Method and Description |
---|---|
JPhyloIOEventReader |
NewickFactory.getReader(java.io.InputStream stream,
ReadWriteParameterMap parameters) |
JPhyloIOEventReader |
NewickFactory.getReader(java.io.Reader reader,
ReadWriteParameterMap parameters) |
Modifier and Type | Class and Description |
---|---|
class |
NeXMLEventReader
An event reader for the NeXML format.
|
Modifier and Type | Method and Description |
---|---|
JPhyloIOEventReader |
NeXMLFactory.getReader(java.io.InputStream stream,
ReadWriteParameterMap parameters) |
JPhyloIOEventReader |
NeXMLFactory.getReader(java.io.Reader reader,
ReadWriteParameterMap parameters) |
Modifier and Type | Class and Description |
---|---|
class |
NexusEventReader
Event based reader for Nexus files.
|
Modifier and Type | Method and Description |
---|---|
JPhyloIOEventReader |
NexusFactory.getReader(java.io.InputStream stream,
ReadWriteParameterMap parameters) |
JPhyloIOEventReader |
NexusFactory.getReader(java.io.Reader reader,
ReadWriteParameterMap parameters) |
Modifier and Type | Class and Description |
---|---|
class |
PDEEventReader
Event reader for the PDE format used by the alignment editor PhyDE.
|
Modifier and Type | Method and Description |
---|---|
JPhyloIOEventReader |
PDEFactory.getReader(java.io.InputStream stream,
ReadWriteParameterMap parameters) |
JPhyloIOEventReader |
PDEFactory.getReader(java.io.Reader reader,
ReadWriteParameterMap parameters) |
Modifier and Type | Class and Description |
---|---|
class |
AbstractPhylipEventReader<P extends TextReaderStreamDataProvider<? extends AbstractPhylipEventReader<P>>>
Implements shared functionality of Phylip event readers.
|
class |
PhylipEventReader
Event based reader for Phylip alignment files.
|
class |
SequentialPhylipEventReader
Event based reader for sequential Phylip alignment files.
|
Modifier and Type | Method and Description |
---|---|
JPhyloIOEventReader |
PhylipFactory.getReader(java.io.InputStream stream,
ReadWriteParameterMap parameters) |
JPhyloIOEventReader |
SequentialPhylipFactory.getReader(java.io.InputStream stream,
ReadWriteParameterMap parameters) |
JPhyloIOEventReader |
PhylipFactory.getReader(java.io.Reader reader,
ReadWriteParameterMap parameters) |
JPhyloIOEventReader |
SequentialPhylipFactory.getReader(java.io.Reader reader,
ReadWriteParameterMap parameters) |
Modifier and Type | Class and Description |
---|---|
class |
PhyloXMLEventReader
Event reader for the PhyloXML format.
|
Modifier and Type | Method and Description |
---|---|
JPhyloIOEventReader |
PhyloXMLFactory.getReader(java.io.InputStream stream,
ReadWriteParameterMap parameters) |
JPhyloIOEventReader |
PhyloXMLFactory.getReader(java.io.Reader reader,
ReadWriteParameterMap parameters) |
Modifier and Type | Class and Description |
---|---|
class |
AbstractTextEventReader<P extends TextReaderStreamDataProvider<? extends AbstractTextEventReader<P>>>
Abstract base class for all readers that read their data from a file using a
PeekReader . |
Modifier and Type | Interface and Description |
---|---|
interface |
JPhyloIOXMLEventReader
Interface providing basic functionality for all JPhyloIO readers of XML formats.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractXMLEventReader<P extends XMLReaderStreamDataProvider<? extends AbstractXMLEventReader<P>>>
Implements shared functionality for reading XML formats.
|
Modifier and Type | Class and Description |
---|---|
class |
XTGEventReader
Event reader for the extensible TreeGraph 2 format (XTG) used by the
phylogenetic tree editor TreeGraph 2.
|
Modifier and Type | Method and Description |
---|---|
JPhyloIOEventReader |
XTGFactory.getReader(java.io.InputStream stream,
ReadWriteParameterMap parameters) |
JPhyloIOEventReader |
XTGFactory.getReader(java.io.Reader reader,
ReadWriteParameterMap parameters) |
Modifier and Type | Method and Description |
---|---|
void |
JPhyloIOEventListener.processEvent(JPhyloIOEventReader source,
JPhyloIOEvent event)
Called after an event was received from a reader instance.
|
void |
EventForwarder.readAll(JPhyloIOEventReader reader)
Consumes all available events from the specified listener and forwards them to the registered listeners.
|
void |
EventForwarder.readCurrentNode(JPhyloIOEventReader reader)
Consumes all events between a start and its respective end event.
|
void |
EventForwarder.readUntil(JPhyloIOEventReader reader,
EventContentType type)
Consumes all available events from the specified listener and forwards them to the registered listeners
until an event of the specified type is reached.
|
void |
EventForwarder.readUntil(JPhyloIOEventReader reader,
java.util.Set<EventContentType> types)
Consumes all available events from the specified listener and forwards them to the registered listeners
until any event of one of the specified types is reached.
|
Modifier and Type | Method and Description |
---|---|
JPhyloIOEventReader |
SequenceTokensEventManager.getOwner()
Returns the reader instance using this object.
|
Modifier and Type | Method and Description |
---|---|
static java.util.List<JPhyloIOEvent> |
JPhyloIOReadingUtils.collectEvents(JPhyloIOEventReader reader,
java.util.Set<EventType> types)
Reads all (remaining) events from the specified reader and adds events that have a type that is contained in the #
specified set to the returned list.
|
static <E extends JPhyloIOEvent> |
JPhyloIOReadingUtils.collectEvents(JPhyloIOEventReader reader,
java.util.Set<EventType> types,
java.lang.Class<E> instanceClass)
Reads all (remaining) events from the specified reader and adds events that implement the specified class and have
a type that is contained in the specified set to the returned list.
|
static void |
JPhyloIOReadingUtils.reachElementEnd(JPhyloIOEventReader reader)
Reads all events from the reader until one more end element than start elements is found.
|
static <O> O |
JPhyloIOReadingUtils.readLiteralMetadataContentAsObject(JPhyloIOEventReader reader,
java.lang.Class<O> objectClass)
Reads a subsequence from an JPhyloIO event stream modeling contents of a literal metadata element into an object of
the specified class.
|
static java.lang.String |
JPhyloIOReadingUtils.readLiteralMetadataContentAsString(JPhyloIOEventReader reader)
This convenience method calls
JPhyloIOReadingUtils.readLiteralMetadataContentAsStringBuilder(JPhyloIOEventReader) internally and
converts its content to a String if the builder is not null . |
static java.lang.StringBuilder |
JPhyloIOReadingUtils.readLiteralMetadataContentAsStringBuilder(JPhyloIOEventReader reader)
Reads a subsequence from an JPhyloIO event stream modeling contents of a literal metadata element into a string
builder.
|
Constructor and Description |
---|
SequenceTokensEventManager(JPhyloIOEventReader owner,
java.lang.String matchToken)
Creates a new instance of this class.
|