Class RAWExternalCompressor
java.lang.Object
htsjdk.samtools.cram.compression.ExternalCompressor
htsjdk.samtools.cram.compression.RAWExternalCompressor
Raw compressor that does no compression.
-
Field Summary
Fields inherited from class ExternalCompressor
NO_COMPRESSION_ARG -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]compress(byte[] data, CRAMCodecModelContext unused_contextModel) Compress the data using the codec-specific context model.byte[]uncompress(byte[] data) Decompress the data.Methods inherited from class ExternalCompressor
equals, getCompressorForMethod, getMethod, hashCode, setMethod, toString
-
Constructor Details
-
RAWExternalCompressor
public RAWExternalCompressor()
-
-
Method Details
-
compress
Description copied from class:ExternalCompressorCompress the data using the codec-specific context model.- Specified by:
compressin classExternalCompressor- Parameters:
data- the data to compressunused_contextModel- the context model to use for compression; may be null- Returns:
- the compressed data
-
uncompress
public byte[] uncompress(byte[] data) Description copied from class:ExternalCompressorDecompress the data.- Specified by:
uncompressin classExternalCompressor- Parameters:
data- the compressed data- Returns:
- the decompressed data
-