public interface JPhyloIOEventWriter extends JPhyloIOFormatSpecificObject
Instances of this interface access application data through an instance of DocumentDataAdapter
that
is passed to a writeDocument()
method. Such an instance links other nested data adapters. Implementations
of the adapters will usually be made in application code (based on abstract implementations provided by JPhyloIO)
and mediate between instances of this class and the classes implementing the application's data model.
Modifier and Type | Method and Description |
---|---|
void |
writeDocument(DocumentDataAdapter document,
java.io.File file,
ReadWriteParameterMap parameters)
Writes the data provided by the data adapter to a document in the according format of the implementing class.
|
void |
writeDocument(DocumentDataAdapter document,
java.io.OutputStream stream,
ReadWriteParameterMap parameters)
Writes the data provided by the data adapter to a document in the according format of the implementing class.
|
void |
writeDocument(DocumentDataAdapter document,
java.io.Writer writer,
ReadWriteParameterMap parameters)
Writes the data provided by the data adapter to a document in the according format of the implementing class.
|
getFormatID
void writeDocument(DocumentDataAdapter document, java.io.OutputStream stream, ReadWriteParameterMap parameters) throws java.io.IOException
document
- the adapter providing the data to be writtenstream
- the stream to write the data toparameters
- a map of parameters to exchange information with the writer implementation (Care should be taken, if a
parameter map is reused for multiple calls, since the writer implementation may add or changes entries in the map.)InconsistentAdapterDataException
- if any inconsistency in the specified document adapter is foundjava.lang.Exception
- implementing classes may choose to throw additional types of exceptionsjava.io.IOException
void writeDocument(DocumentDataAdapter document, java.io.File file, ReadWriteParameterMap parameters) throws java.io.IOException
document
- the adapter providing the data to be writtenfile
- the file to write the data toparameters
- a map of parameters to exchange information with the writer implementation (Care should be taken, if a
parameter map is reused for multiple calls, since the writer implementation may add or changes entries in the map.)InconsistentAdapterDataException
- if any inconsistency in the specified document adapter is foundjava.lang.Exception
- implementing classes may choose to throw additional types of exceptionsjava.io.IOException
void writeDocument(DocumentDataAdapter document, java.io.Writer writer, ReadWriteParameterMap parameters) throws java.io.IOException
document
- the adapter providing the data to be writtenwriter
- the writer to write the data toparameters
- a map of parameters to exchange information with the writer implementation (Care should be taken, if a
parameter map is reused for multiple calls, since the writer implementation may add or changes entries in the map.)InconsistentAdapterDataException
- if any inconsistency in the specified document adapter is foundjava.lang.Exception
- implementing classes may choose to throw additional types of exceptionsjava.io.IOException