public class SequenceBaseInformationWriter extends Object implements Closeable
| Modifier and Type | Field and Description |
|---|---|
List<StatAccumulator> |
ACCUMULATORS |
| Constructor and Description |
|---|
SequenceBaseInformationWriter(OutputStream output) |
SequenceBaseInformationWriter(String basename) |
| Modifier and Type | Method and Description |
|---|---|
void |
appendEntry(BaseInformationRecords.BaseInformation baseInfo)
Append a base information record.
|
void |
close() |
void |
printStats(PrintStream out) |
void |
setCustomProperties(Properties customProperties)
Define custom properties to be written with in the .sbip along with all properties handled by the
writer.
|
void |
setNumEntriesPerChunk(int numEntriesPerChunk) |
static void |
writeProperties(String basename,
List<Properties> properties)
Write the sbip file with the information obtained by merging properties.
|
static void |
writeProperties(String basename,
long numberOfRecords) |
public List<StatAccumulator> ACCUMULATORS
public SequenceBaseInformationWriter(String basename) throws FileNotFoundException
FileNotFoundExceptionpublic SequenceBaseInformationWriter(OutputStream output)
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic void setCustomProperties(Properties customProperties)
customProperties - public static void writeProperties(String basename, List<Properties> properties) throws FileNotFoundException
basename - basename of the .sbi file.properties - List of properties that should be written.FileNotFoundExceptionpublic static void writeProperties(String basename, long numberOfRecords) throws FileNotFoundException
FileNotFoundExceptionpublic void appendEntry(BaseInformationRecords.BaseInformation baseInfo) throws IOException
IOException - If an error occurs while writing the file.public void setNumEntriesPerChunk(int numEntriesPerChunk)
public void printStats(PrintStream out)
Copyright © 2017 Campagne Laboratory. All rights reserved.