SnappyOutputStream.
The magic header is the following 8 bytes data:
-126, 'S', 'N', 'A', 'P', 'P', 'Y', 0
| Modifier and Type | Field and Description |
|---|---|
| public final int | |
| public static final SnappyCodec | |
| public static final int | |
| public static final int | |
| private final byte[] | |
| public final byte[] | |
| pack-priv static final byte[] | |
| public static final int | |
| public static final int | |
| public static final int | |
| public final int |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static byte[] | |
| public static boolean | |
| public static int | |
| public boolean | |
| public static SnappyCodec | |
| public String | |
| public int | |
| public int |
| compatibleVersion | back to summary |
|---|---|
| public final int compatibleVersion | |
| currentHeader | back to summary |
|---|---|
| public static final SnappyCodec currentHeader | |
| DEFAULT_VERSION | back to summary |
|---|---|
| public static final int DEFAULT_VERSION | |
| HEADER_SIZE | back to summary |
|---|---|
| public static final int HEADER_SIZE | |
| headerArray | back to summary |
|---|---|
| private final byte[] headerArray | |
| magic | back to summary |
|---|---|
| public final byte[] magic | |
| MAGIC_HEADER | back to summary |
|---|---|
| pack-priv static final byte[] MAGIC_HEADER | |
| MAGIC_HEADER_HEAD | back to summary |
|---|---|
| public static final int MAGIC_HEADER_HEAD | |
| MAGIC_LEN | back to summary |
|---|---|
| public static final int MAGIC_LEN | |
| MINIMUM_COMPATIBLE_VERSION | back to summary |
|---|---|
| public static final int MINIMUM_COMPATIBLE_VERSION | |
| version | back to summary |
|---|---|
| public final int version | |
| SnappyCodec | back to summary |
|---|---|
| private SnappyCodec(byte[] magic, int version, int compatibleVersion) | |
| getMagicHeader | back to summary |
|---|---|
| public static byte[] getMagicHeader() | |
| hasMagicHeaderPrefix | back to summary |
|---|---|
| public static boolean hasMagicHeaderPrefix(byte[] b) | |
| headerSize | back to summary |
|---|---|
| public static int headerSize() | |
| isValidMagicHeader | back to summary |
|---|---|
| public boolean isValidMagicHeader() | |
| readHeader | back to summary |
|---|---|
| public static SnappyCodec readHeader(InputStream in) throws IOException | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| writeHeader | back to summary |
|---|---|
| public int writeHeader(byte[] dst, int dstOffset) | |
| writeHeader | back to summary |
|---|---|
| public int writeHeader(OutputStream out) throws IOException | |