1
0
Fork 0
mirror of https://github.com/ethauvin/JSON-java.git synced 2025-06-17 07:50:52 -07:00

this.namehuffext.generate

This commit is contained in:
Douglas Crockford 2014-05-20 15:22:05 -07:00
parent 1272d80a03
commit aab1017e66

View file

@ -44,7 +44,7 @@ package org.json.zip;
* ADEQUATELY FOR PRODUCTION USE. * ADEQUATELY FOR PRODUCTION USE.
* *
* @author JSON.org * @author JSON.org
* @version 2014-05-03 * @version 2014-05-20
*/ */
public abstract class JSONzip implements None, PostMortem { public abstract class JSONzip implements None, PostMortem {
/** /**
@ -54,21 +54,6 @@ public abstract class JSONzip implements None, PostMortem {
'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '.', '-', '+', 'E' '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '.', '-', '+', 'E'
}; };
/**
* The first positive integer than cannot be encoded in 4 bits.
*/
public static final long int4 = 16;
/**
* The first positive integer than cannot be encoded in 7 bits.
*/
public static final long int7 = 144;
/**
* The first positive integer than cannot be encoded in 14 bits.
*/
public static final long int14 = 16528;
/** /**
* The end of string code. * The end of string code.
*/ */
@ -79,6 +64,21 @@ public abstract class JSONzip implements None, PostMortem {
*/ */
public static final int endOfNumber = bcd.length; public static final int endOfNumber = bcd.length;
/**
* The first positive integer that cannot be encoded in 4 bits.
*/
public static final long int4 = 16;
/**
* The first positive integer that cannot be encoded in 7 bits.
*/
public static final long int7 = 144;
/**
* The first positive integer that cannot be encoded in 14 bits.
*/
public static final long int14 = 16528;
/** /**
* The package supports tracing for debugging. * The package supports tracing for debugging.
*/ */
@ -177,6 +177,7 @@ public abstract class JSONzip implements None, PostMortem {
*/ */
protected void generate() { protected void generate() {
this.namehuff.generate(); this.namehuff.generate();
this.namehuffext.generate();
this.stringhuff.generate(); this.stringhuff.generate();
this.stringhuffext.generate(); this.stringhuffext.generate();
} }