SophiaSCALE provides tiny decompression libraries for DoJa/MIDP based on the Java CLDC other than the standard compression/decompression library for the Java 2 SE.
The fundamental specification is the same. But there are some differences as follows in these two packages.
Embedded vs. Standard Version
- The Standard version is packaged in scalelib.jar, while the Embedded one in "scalelib_cldc.jar"
- Only "ScaleInputStream" is provided for decompression in the Embedded version
- ScaleInputStream inherits not "FilterInputStream" but "InputStream". This is because there is no "FilterInputStream" class in the CLDC specification.
Restrictions
- The size of a file that is to be compressed is restricted to less than 2G bytes.
- CRC or Checksum will not be generated. When SophiaSCALE is used in communication networks where errors occur frequently, it is up to the developer to implement another error check module. In case of HTTP, it needs not be implemented because TCP/IP will assume responsability.
How to use
There is no difference in the specification of APIs between standard version and embedded one. Please use "scalelib_cldc.jar" instead of "scalelib.jar" as the necessary library in compile time.