- java.lang.Object
-
- org.biojava.nbio.core.sequence.io.GenbankWriter<S,C>
-
public class GenbankWriter<S extends Sequence<?>,C extends Compound> extends Object
- Author:
- mckeee1
-
-
Constructor Summary
Constructors Constructor Description GenbankWriter(OutputStream os, Collection<S> sequences, GenbankHeaderFormatInterface<S,C> headerFormat)Use default line length of 60GenbankWriter(OutputStream os, Collection<S> sequences, GenbankHeaderFormatInterface<S,C> headerFormat, int lineLength)Set custom lineLength
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetLineLength()voidprocess()Allow an override of operating system line separator for programs that needs a specific CRLF or CR or LF optionvoidsetLineLength(int lineLength)
-
-
-
Constructor Detail
-
GenbankWriter
public GenbankWriter(OutputStream os, Collection<S> sequences, GenbankHeaderFormatInterface<S,C> headerFormat)
Use default line length of 60- Parameters:
os-sequences-headerFormat-
-
GenbankWriter
public GenbankWriter(OutputStream os, Collection<S> sequences, GenbankHeaderFormatInterface<S,C> headerFormat, int lineLength)
Set custom lineLength- Parameters:
os-sequences-headerFormat-lineLength-
-
-
Method Detail
-
process
public void process() throws Exception
Allow an override of operating system line separator for programs that needs a specific CRLF or CR or LF option- Parameters:
lineSeparator-- Throws:
Exception
-
getLineLength
public int getLineLength()
- Returns:
- the lineLength
-
setLineLength
public void setLineLength(int lineLength)
- Parameters:
lineLength- the lineLength to set
-
-