public interface ProtobuffCollectionHandler
| Modifier and Type | Field and Description |
|---|---|
static int |
TYPE_ALIGNMENTS |
static int |
TYPE_READS |
static int |
TYPE_SEQUENCE_BASE_INFO |
static int |
TYPE_SEQUENCE_SEGMENT_INFO |
| 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) |
static final int TYPE_READS
static final int TYPE_ALIGNMENTS
static final int TYPE_SEQUENCE_BASE_INFO
static final int TYPE_SEQUENCE_SEGMENT_INFO
int getType()
com.google.protobuf.GeneratedMessage parse(InputStream uncompressedStream) throws IOException
IOExceptioncom.google.protobuf.Message compressCollection(com.google.protobuf.Message readCollection,
ByteArrayOutputStream compressedBits)
throws IOException
readCollection - collection to compresscompressedBits - stream of compressed bits.IOExceptioncom.google.protobuf.Message decompressCollection(com.google.protobuf.Message reducedProtoBuff,
byte[] compressedBytes)
throws IOException
reducedProtoBuff - compressedBytes - IOExceptionvoid setUseTemplateCompression(boolean useTemplateCompression)
Copyright © 2018 Campagne Laboratory. All rights reserved.