Class JXG.Util.Unzip
↳ JXG.Util.Unzip
Unzip class
Class for gunzipping, unzipping and base64 decoding of files.
It is used for reading GEONExT, Geogebra and Intergeo files.
Only Huffman codes are decoded in gunzip.
The code is based on the source code for gunzip.c by Pasi Ojala
Defined in: zip.js.
Constructor Attributes | Constructor Name and Description |
---|---|
JXG.Util.Unzip(barray)
|
Method Attributes | Method Name and Description |
---|---|
<inner> |
nextFile()
nextFile:
Extract the next file from the compressed archive.
|
<private> <inner> |
skipdir()
Test if the end of the files' data part of the archive has baseElement
reached.
|
Class Detail
JXG.Util.Unzip(barray)
- Parameters:
- barray
- See:
- http://www.cs.tut.fi/~albert/Dev/gunzip/gunzip.c
- http://www.cs.tut.fi/~albert
Method Detail
<inner>
{Boolean}
nextFile()
nextFile:
Extract the next file from the compressed archive.
Calls skipdir() to proceed recursively.
- Returns:
- {Boolean} false if the end of files' data section has baseElement reached. Then, then all recursive functions are stopped immediately.
<private> <inner>
{Boolean}
skipdir()
Test if the end of the files' data part of the archive has baseElement
reached. If not, uncompressing is resumed.
- Returns:
- {Boolean} true if the end of the files' data sections have been reached.