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 SnappyCodec |
currentHeader |
static int |
DEFAULT_VERSION |
static int |
HEADER_SIZE |
byte[] |
magic |
static int |
MAGIC_HEADER_HEAD |
static int |
MAGIC_LEN |
static int |
MINIMUM_COMPATIBLE_VERSION |
int |
version |
Modifier and Type | Method and Description |
---|---|
static byte[] |
getMagicHeader() |
static int |
headerSize() |
boolean |
isValidMagicHeader() |
static SnappyCodec |
readHeader(InputStream in) |
String |
toString() |
int |
writeHeader(byte[] dst,
int dstOffset) |
int |
writeHeader(OutputStream out) |
public static final int MAGIC_LEN
public static final int HEADER_SIZE
public static final int MAGIC_HEADER_HEAD
public static final int DEFAULT_VERSION
public static final int MINIMUM_COMPATIBLE_VERSION
public static final SnappyCodec currentHeader
public final byte[] magic
public final int version
public final int compatibleVersion
public static byte[] getMagicHeader()
public static int headerSize()
public int writeHeader(byte[] dst, int dstOffset)
public int writeHeader(OutputStream out) throws IOException
IOException
public boolean isValidMagicHeader()
public static SnappyCodec readHeader(InputStream in) throws IOException
IOException
Copyright © 2011–2024 xerial.org. All rights reserved.