S - sequence typepublic final class FastaWriter<S extends Sequence<S>> extends Object implements AutoCloseable
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_MAX_LENGTH |
| Constructor and Description |
|---|
FastaWriter(File file)
Creates FASTA writer
|
FastaWriter(File file,
int maxLength)
Creates FASTA writer
|
FastaWriter(OutputStream outputStream)
Creates FASTA writer
|
FastaWriter(OutputStream outputStream,
int maxLength)
Creates FASTA writer
|
FastaWriter(String fileName)
Creates FASTA writer
|
public static final int DEFAULT_MAX_LENGTH
public FastaWriter(String fileName) throws FileNotFoundException
fileName - file to be createdFileNotFoundExceptionpublic FastaWriter(File file) throws FileNotFoundException
file - output fileFileNotFoundExceptionpublic FastaWriter(File file, int maxLength) throws FileNotFoundException
file - output filemaxLength - line length limit after which sequence will be split into several linesFileNotFoundExceptionpublic FastaWriter(OutputStream outputStream)
outputStream - output streampublic FastaWriter(OutputStream outputStream, int maxLength)
outputStream - output streammaxLength - line length limit after which sequence will be split into several linespublic void write(FastaRecord<S> record)
public void flush()
public void close()
close in interface AutoCloseableCopyright © 2018. All rights reserved.