|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.biojava3.core.sequence.io.FastaWriter<S,C>
public class FastaWriter<S extends Sequence<?>,C extends Compound>
The FastaWriter writes a collection of sequences to an outputStream. FastaWriterHelper should be used to write out sequences. Each sequence loaded from a fasta file retains the original Fasta header and that is used when writing to the stream. This behavior can be overwritten by implementing a custom FastaHeaderFormatInterface.
| Constructor Summary | |
|---|---|
FastaWriter(OutputStream os,
Collection<S> sequences,
FastaHeaderFormatInterface<S,C> headerFormat)
Use default line length of 60 |
|
FastaWriter(OutputStream os,
Collection<S> sequences,
FastaHeaderFormatInterface<S,C> headerFormat,
int lineLength)
Set custom lineLength |
|
| Method Summary | |
|---|---|
int |
getLineLength()
|
static void |
main(String[] args)
|
void |
process()
|
void |
setLineLength(int lineLength)
|
void |
setLineSeparator(String lineSeparator)
Allow an override of operating system line separator for programs that needs a specific CRLF or CR or LF option |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FastaWriter(OutputStream os,
Collection<S> sequences,
FastaHeaderFormatInterface<S,C> headerFormat)
os - sequences - headerFormat -
public FastaWriter(OutputStream os,
Collection<S> sequences,
FastaHeaderFormatInterface<S,C> headerFormat,
int lineLength)
os - sequences - headerFormat - lineLength - | Method Detail |
|---|
public void setLineSeparator(String lineSeparator)
lineSeparator -
public void process()
throws Exception
Exceptionpublic static void main(String[] args)
public int getLineLength()
public void setLineLength(int lineLength)
lineLength - the lineLength to set
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||