public class FastaWriter<S extends Sequence<?>,C extends Compound>
extends java.lang.Object
| Constructor and Description |
|---|
FastaWriter(java.io.OutputStream os,
java.util.Collection<S> sequences,
FastaHeaderFormatInterface<S,C> headerFormat)
Use default line length of 60
|
FastaWriter(java.io.OutputStream os,
java.util.Collection<S> sequences,
FastaHeaderFormatInterface<S,C> headerFormat,
int lineLength)
Set custom lineLength
|
| Modifier and Type | Method and Description |
|---|---|
int |
getLineLength() |
static void |
main(java.lang.String[] args) |
void |
process() |
void |
setLineLength(int lineLength) |
void |
setLineSeparator(java.lang.String lineSeparator)
Allow an override of operating system line separator for programs that needs a specific CRLF or CR or LF option
|
public FastaWriter(java.io.OutputStream os,
java.util.Collection<S> sequences,
FastaHeaderFormatInterface<S,C> headerFormat)
os - sequences - headerFormat - public FastaWriter(java.io.OutputStream os,
java.util.Collection<S> sequences,
FastaHeaderFormatInterface<S,C> headerFormat,
int lineLength)
os - sequences - headerFormat - lineLength - public void setLineSeparator(java.lang.String lineSeparator)
lineSeparator - public void process()
throws java.io.IOException
java.io.IOExceptionpublic static void main(java.lang.String[] args)
public int getLineLength()
public void setLineLength(int lineLength)
lineLength - the lineLength to set