Package javaforce
Class Compression
java.lang.Object
javaforce.Compression
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic longcompress(InputStream is, OutputStream os, long uncompressed) static longdecompress(InputStream is, OutputStream os, long compressed) static Objectdeserialize(InputStream is, long length) Decompress and deserialize an InputStream to an Object.static Objectdeserialize(String file) Decompress and deserialize a file to an Object.static voidstatic booleanserialize(OutputStream os, Object obj) Serialize and compress an object to an OutputStream.static booleanSerialize and compress an object to a file.
-
Constructor Details
-
Compression
public Compression()
-
-
Method Details
-
main
-
compress
- Throws:
Exception
-
decompress
- Throws:
Exception
-
serialize
Serialize and compress an object to a file. -
serialize
Serialize and compress an object to an OutputStream. -
deserialize
Decompress and deserialize a file to an Object. -
deserialize
Decompress and deserialize an InputStream to an Object.
-