public class SequenceSegmentInfoCollectionHandler extends Object implements ProtobuffCollectionHandler
TYPE_ALIGNMENTS, TYPE_READS, TYPE_SEQUENCE_BASE_INFO, TYPE_SEQUENCE_SEGMENT_INFO| Constructor and Description |
|---|
SequenceSegmentInfoCollectionHandler() |
| Modifier and Type | Method and Description |
|---|---|
com.google.protobuf.Message |
compressCollection(com.google.protobuf.Message readCollection,
ByteArrayOutputStream compressedBits)
Transform a collection to a stream of compressed bits, and return the left-over collection.
|
com.google.protobuf.Message |
decompressCollection(com.google.protobuf.Message reducedProtoBuff,
byte[] compressedBytes)
Take a left-over collection and a stream of compressed bits and reconstitute the original collection.
|
int |
getType()
Returns the type of the collection elements.
|
com.google.protobuf.GeneratedMessage |
parse(InputStream uncompressedStream) |
void |
setUseTemplateCompression(boolean useTemplateCompression) |
public SequenceSegmentInfoCollectionHandler()
public int getType()
getType in interface ProtobuffCollectionHandlerpublic com.google.protobuf.GeneratedMessage parse(InputStream uncompressedStream) throws IOException
parse in interface ProtobuffCollectionHandlerIOExceptionpublic com.google.protobuf.Message compressCollection(com.google.protobuf.Message readCollection,
ByteArrayOutputStream compressedBits)
throws IOException
compressCollection in interface ProtobuffCollectionHandlerreadCollection - collection to compresscompressedBits - stream of compressed bits.IOExceptionpublic com.google.protobuf.Message decompressCollection(com.google.protobuf.Message reducedProtoBuff,
byte[] compressedBytes)
throws IOException
decompressCollection in interface ProtobuffCollectionHandlerreducedProtoBuff - compressedBytes - IOExceptionpublic void setUseTemplateCompression(boolean useTemplateCompression)
setUseTemplateCompression in interface ProtobuffCollectionHandlerCopyright © 2017 Campagne Laboratory. All rights reserved.