public abstract class JSONzip extends java.lang.Object implements None, PostMortem
Modifier and Type | Field and Description |
---|---|
static byte[] |
bcd
The characters in JSON numbers can be reduced to 4 bits each.
|
static int |
end
The end of string code.
|
static int |
endOfNumber
The end of number code.
|
static long |
int14
The first positive integer that cannot be encoded in 14 bits.
|
static long |
int4
The first positive integer that cannot be encoded in 4 bits.
|
static long |
int7
The first positive integer that cannot be encoded in 7 bits.
|
protected Huff |
namehuff
A Huffman encoder for names.
|
protected Huff |
namehuffext
A Huffman encoder for names extended bytes.
|
protected totalcross.json.zip.Keep |
namekeep
A place to keep the names (keys).
|
static boolean |
probe
The package supports tracing for debugging.
|
protected Huff |
stringhuff
A Huffman encoder for string values.
|
protected Huff |
stringhuffext
A Huffman encoder for string values extended bytes.
|
protected totalcross.json.zip.Keep |
stringkeep
A place to keep the strings.
|
protected totalcross.json.zip.Keep |
valuekeep
A place to keep the values.
|
static int |
zipArrayString
The value code for an array with a string as its first element.
|
static int |
zipArrayValue
The value code for an array with a non-string value as its first element.
|
static int |
zipEmptyArray
The value code for an empty array.
|
static int |
zipEmptyObject
The value code for an empty object.
|
static int |
zipFalse
The value code for false.
|
static int |
zipNull
The value code for null.
|
static int |
zipObject
The value code for a non-empty object.
|
static int |
zipTrue
The value code for true.
|
Modifier | Constructor and Description |
---|---|
protected |
JSONzip()
Initialize the data structures.
|
Modifier and Type | Method and Description |
---|---|
protected void |
generate()
Generate the Huffman tables.
|
boolean |
postMortem(PostMortem pm)
This method is used for testing the implementation of JSONzip.
|
public static final byte[] bcd
public static final int end
public static final int endOfNumber
public static final long int4
public static final long int7
public static final long int14
public static final boolean probe
public static final int zipEmptyObject
public static final int zipEmptyArray
public static final int zipTrue
public static final int zipFalse
public static final int zipNull
public static final int zipObject
public static final int zipArrayString
public static final int zipArrayValue
protected final Huff namehuff
protected final Huff namehuffext
protected final totalcross.json.zip.Keep namekeep
protected final Huff stringhuff
protected final Huff stringhuffext
protected final totalcross.json.zip.Keep stringkeep
protected final totalcross.json.zip.Keep valuekeep
protected void generate()
public boolean postMortem(PostMortem pm)
postMortem
in interface PostMortem
pm
- Another object of the same type.