public class CountsArchiveWriter extends Object implements Closeable
CompoundFileWriter.| Modifier and Type | Field and Description |
|---|---|
static String |
COUNT_ARCHIVE_MODIFIER_DEFAULT
Default counts archive extension.
|
| Constructor and Description |
|---|
CountsArchiveWriter(String basename)
Initialize with a basename.
|
CountsArchiveWriter(String basename,
String countArchiveModifier)
Initialize with a basename.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes this archive.
|
CountsWriterI |
newCountWriter(int countInfoIndex)
Obtain a countsWriter to write counts for a sequence.
|
CountsWriterI |
newCountWriter(int referenceIndex,
String identifier)
Obtain a countsWriter to write counts for a sequence.
|
void |
returnWriter(CountsWriterI writerI)
Return a count Writer to the counts archive.
|
void |
setVerbose(boolean verbose)
Set the verbose flag.
|
public static final String COUNT_ARCHIVE_MODIFIER_DEFAULT
public CountsArchiveWriter(String basename) throws IOException
basename - Basename for the alignment/counts.IOException - If an error occurs preparing the packaged counts.public CountsArchiveWriter(String basename, String countArchiveModifier) throws IOException
basename - Basename for the alignment/counts.countArchiveModifier - the extension to write the archive.IOException - If an error occurs preparing the packaged counts.public CountsWriterI newCountWriter(int referenceIndex, String identifier) throws IOException
referenceIndex - index of the sequence for which counts need to be recorded.identifier - Identifier of the sequence for which counts need to be recorded.IOException - If an error occurs.public CountsWriterI newCountWriter(int countInfoIndex) throws IOException
countInfoIndex - Identifier of the sequence for which counts need to be recorded.IOException - If an error occurs.public void returnWriter(CountsWriterI writerI) throws IOException
writerI - The countWriter being returned.IOException - If an error occurs packaging the count information in the archive.public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic void setVerbose(boolean verbose)
verbose - Verbose flag.Copyright © 2018 Campagne Laboratory. All rights reserved.