Package totalcross.json.zip
Class Unzipper
- java.lang.Object
-
- totalcross.json.zip.JSONzip
-
- totalcross.json.zip.Unzipper
-
- All Implemented Interfaces:
None,PostMortem
public class Unzipper extends JSONzip
JSONzip is a binary compression scheme for JSON text.
-
-
Field Summary
-
Fields inherited from class totalcross.json.zip.JSONzip
bcd, end, endOfNumber, int14, int4, int7, namehuff, namehuffext, namekeep, probe, stringhuff, stringhuffext, stringkeep, valuekeep, zipArrayString, zipArrayValue, zipEmptyArray, zipEmptyObject, zipFalse, zipNull, zipObject, zipTrue
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectdecode()booleanpad(int width)The pad method skips the bits that padded a stream to fit some allocation.-
Methods inherited from class totalcross.json.zip.JSONzip
generate, postMortem
-
-
-
-
Constructor Detail
-
Unzipper
public Unzipper(BitReader bitreader)
Create a new unzipper. It may be used for an entire session or subsession.- Parameters:
bitreader- The bitreader that this decoder will read from.
-
-
Method Detail
-
pad
public boolean pad(int width) throws JSONExceptionThe pad method skips the bits that padded a stream to fit some allocation. pad(8) will skip over the remainder of a byte.- Parameters:
width- The width of the pad field in bits.- Returns:
- true if all of the padding bits were zero.
- Throws:
JSONException
-
decode
public java.lang.Object decode() throws JSONException- Throws:
JSONException
-
-