public static class Snappy.XerialSnappy extends Object implements Snappy.SPI
Constructor and Description |
---|
XerialSnappy() |
Modifier and Type | Method and Description |
---|---|
int |
compress(byte[] input,
int inputOffset,
int length,
byte[] output,
int outputOffset) |
byte[] |
compress(String text) |
int |
maxCompressedLength(int length) |
int |
uncompress(byte[] input,
int inputOffset,
int length,
byte[] output,
int outputOffset) |
int |
uncompress(ByteBuffer compressed,
ByteBuffer uncompressed) |
public int uncompress(ByteBuffer compressed, ByteBuffer uncompressed) throws IOException
uncompress
in interface Snappy.SPI
IOException
public int uncompress(byte[] input, int inputOffset, int length, byte[] output, int outputOffset) throws IOException
uncompress
in interface Snappy.SPI
IOException
public int compress(byte[] input, int inputOffset, int length, byte[] output, int outputOffset) throws IOException
compress
in interface Snappy.SPI
IOException
public byte[] compress(String text) throws IOException
compress
in interface Snappy.SPI
IOException
public int maxCompressedLength(int length)
maxCompressedLength
in interface Snappy.SPI
Copyright © 2011–2019. All rights reserved.