public class SnappyCodec extends Object
SnappyOutputStream
.
The magic header is the following 8 bytes data:
-126, 'S', 'N', 'A', 'P', 'P', 'Y', 0
Modifier and Type | Field and Description |
---|---|
int |
compatibleVersion |
static int |
DEFAULT_VERSION |
byte[] |
magic |
static byte[] |
MAGIC_HEADER |
static int |
MAGIC_LEN |
static int |
MINIMUM_COMPATIBLE_VERSION |
int |
version |
Modifier and Type | Method and Description |
---|---|
static SnappyCodec |
currentHeader() |
static int |
headerSize() |
boolean |
isValidMagicHeader() |
static SnappyCodec |
readHeader(InputStream in) |
String |
toString() |
void |
writeHeader(OutputStream out) |
public static final byte[] MAGIC_HEADER
public static final int MAGIC_LEN
public static final int DEFAULT_VERSION
public static final int MINIMUM_COMPATIBLE_VERSION
public final byte[] magic
public final int version
public final int compatibleVersion
public static int headerSize()
public void writeHeader(OutputStream out) throws IOException
IOException
public boolean isValidMagicHeader()
public static SnappyCodec readHeader(InputStream in) throws IOException
IOException
public static SnappyCodec currentHeader()
Copyright © 2011–2015 xerial.org. All rights reserved.