Interface Compressable


  • public interface Compressable
    Implementations 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 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: