public class Encoding
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static char |
CR |
static char |
LF |
static byte[] |
NEG_ONE |
static byte[] |
NEG_ONE_WITH_CRLF |
private static int |
NUM_MAP_LENGTH |
private static byte[][] |
numMap |
private static byte[][] |
numMapWithCRLF |
| Constructor and Description |
|---|
Encoding() |
| Modifier and Type | Method and Description |
|---|---|
static long |
bytesToNum(byte[] bytes)
Reads a number from a byte array.
|
private static byte[] |
convert(long value,
boolean withCRLF) |
static byte[] |
numToBytes(long value) |
static byte[] |
numToBytes(long value,
boolean withCRLF) |
public static final byte[] NEG_ONE
public static final byte[] NEG_ONE_WITH_CRLF
public static final char LF
public static final char CR
private static final int NUM_MAP_LENGTH
private static byte[][] numMap
private static byte[][] numMapWithCRLF
public static byte[] numToBytes(long value)
public static byte[] numToBytes(long value,
boolean withCRLF)
private static byte[] convert(long value,
boolean withCRLF)
public static long bytesToNum(byte[] bytes)
bytes -