Package nl.tue.storage.compressor
Interface Compressable
-
public interface CompressableImplementations of this interface should have an empty contructor. The CompressableListCompressor uses that contructor to construct a new object, after which the method unCompress(stream) is called on that empty object.- Author:
- bfvdonge
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcompress(java.io.OutputStream stream)Write this object to the streamCompressableunCompress(java.io.InputStream stream)Read this object from the given stream.
-
-
-
Method Detail
-
compress
void compress(java.io.OutputStream stream)
Write this object to the stream- Parameters:
stream-
-
unCompress
Compressable unCompress(java.io.InputStream stream)
Read this object from the given stream. The object should know when to stop reading, i.e. the stream may be larger than the necessary for this object.- Parameters:
stream-- Returns:
-
-