public class StreamWriter extends 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(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(OutputStream os, SequenceFormat format)
os - the OutputStream to write toformat - the SequenceFormat to write withpublic void writeStream(SequenceIterator ss) throws IOException
ss - the SequenceIterator to loop overIOException - if the stream has any problemsCopyright © 2014 BioJava. All rights reserved.