Package com.yahoo.compress
Class Compressor.Compression
- java.lang.Object
-
- com.yahoo.compress.Compressor.Compression
-
- Enclosing class:
- Compressor
public static class Compressor.Compression extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Compression(CompressionType compressionType, int uncompressedSize, byte[] data)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
data()
Returns the uncompressed data in a buffer which gets owned by the callerCompressionType
type()
Returns the compression type used to compress this data.int
uncompressedSize()
Returns the uncompressed size of this data in bytes
-
-
-
Constructor Detail
-
Compression
public Compression(CompressionType compressionType, int uncompressedSize, byte[] data)
-
-
Method Detail
-
type
public CompressionType type()
Returns the compression type used to compress this data. This will be either the requested compression or INCOMPRESSIBLE.
-
uncompressedSize
public int uncompressedSize()
Returns the uncompressed size of this data in bytes
-
data
public byte[] data()
Returns the uncompressed data in a buffer which gets owned by the caller
-
-