public class FASTAFileWriter extends net.sf.kerner.utils.io.buffered.AbstractBufferedWriter implements net.sf.kerner.utils.io.ObjectWriter<FASTAElement>
FASTAFileWriter writes FASTAElements and
FASTAFiles to
FileWriterOutputStream
Example:
TODO example
last reviewed: 2013-04-29
FASTAFileWriter is thread save.
| Constructor and Description |
|---|
FASTAFileWriter(File file)
Creates a
FASTAFileWriter that writes to a file. |
FASTAFileWriter(OutputStream stream)
Creates a
FASTAFileWriter that writes to a stream. |
FASTAFileWriter(Writer writer)
Creates a
FASTAFileWriter that writes to a writer. |
| Modifier and Type | Method and Description |
|---|---|
void |
write(FASTAElement e)
Writes a
FASTAElement. |
void |
write(FASTAFile e)
Writes a
FASTAFile at once. |
public FASTAFileWriter(File file) throws IOException
FASTAFileWriter that writes to a file.file - file to write toIOException - if file is not accessiblepublic FASTAFileWriter(OutputStream stream)
FASTAFileWriter that writes to a stream.stream - output stream to write topublic FASTAFileWriter(Writer writer)
FASTAFileWriter that writes to a writer.writer - writer to write topublic void write(FASTAElement e) throws IOException
FASTAElement.
Note: For big FASTA elements, prepare for equivalent memory usage.
write in interface net.sf.kerner.utils.io.ObjectWriter<FASTAElement>IOExceptionpublic void write(FASTAFile e) throws IOException
FASTAFile at once.
Note: For big FASTA files, use write(FASTAElement)
instead and write FASTA file element by element.
e - FASTA file to writeIOException - if writing failsCopyright © 2013. All Rights Reserved.