From aab1017e66f9faf03f5c49e9f167d2be66488215 Mon Sep 17 00:00:00 2001 From: Douglas Crockford Date: Tue, 20 May 2014 15:22:05 -0700 Subject: [PATCH] this.namehuffext.generate --- zip/JSONzip.java | 33 +++++++++++++++++---------------- 1 file changed, 17 insertions(+), 16 deletions(-) diff --git a/zip/JSONzip.java b/zip/JSONzip.java index 220686d..d8e3ac6 100644 --- a/zip/JSONzip.java +++ b/zip/JSONzip.java @@ -44,7 +44,7 @@ package org.json.zip; * ADEQUATELY FOR PRODUCTION USE. * * @author JSON.org - * @version 2014-05-03 + * @version 2014-05-20 */ 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' }; - /** - * 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. */ @@ -79,6 +64,21 @@ public abstract class JSONzip implements None, PostMortem { */ 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. */ @@ -177,6 +177,7 @@ public abstract class JSONzip implements None, PostMortem { */ protected void generate() { this.namehuff.generate(); + this.namehuffext.generate(); this.stringhuff.generate(); this.stringhuffext.generate(); }