public class FastaWriter<S extends Sequence<?>,C extends Compound> extends Object
Constructor and Description |
---|
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
|
Modifier and Type | Method and Description |
---|---|
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
|
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
- public void setLineSeparator(String lineSeparator)
lineSeparator
- public void process() throws IOException
IOException
public int getLineLength()
public void setLineLength(int lineLength)
lineLength
- the lineLength to setCopyright © 2000–2018 BioJava. All rights reserved.