public class StreamWriter
extends java.lang.Object
This can be wired from a StreamReader to make a simple file-format conversion utility, or can be used to write out the sequences in a database to disk.
More functionality is offered by RichStreamWriter,
Use of this interface is prefered.
RichStreamWriter| Constructor and Description |
|---|
StreamWriter(java.io.OutputStream os,
SequenceFormat format)
Generate a new StreamWriter to the stream os and using format.
|
| Modifier and Type | Method and Description |
|---|---|
void |
writeStream(SequenceIterator ss)
Write each of the sequences in ss to the stream in the given format.
|
public StreamWriter(java.io.OutputStream os,
SequenceFormat format)
os - the OutputStream to write toformat - the SequenceFormat to write withpublic void writeStream(SequenceIterator ss) throws java.io.IOException
ss - the SequenceIterator to loop overjava.io.IOException - if the stream has any problems