|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.biojava.bio.seq.io.StreamWriter
public class StreamWriter
Writes all of the sequences from a SequenceIterator to a stream with a particular format.
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 Summary | |
|---|---|
StreamWriter(OutputStream os,
SequenceFormat format)
Generate a new StreamWriter to the stream os and using format. |
|
| Method Summary | |
|---|---|
void |
writeStream(SequenceIterator ss)
Write each of the sequences in ss to the stream in the given format. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StreamWriter(OutputStream os,
SequenceFormat format)
os - the OutputStream to write toformat - the SequenceFormat to write with| Method Detail |
|---|
public void writeStream(SequenceIterator ss)
throws IOException
ss - the SequenceIterator to loop over
IOException - if the stream has any problems
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||