Class RunLength


public class RunLength extends Filter
RunLength
  • Constructor Details

  • Method Details

    • decode

      public byte[] decode(byte[] data)
      Run length decode
      Specified by:
      decode in class Filter
      Parameters:
      data - byte[] to be decoded
    • decode

      public void decode(BufferedInputStream bis, BufferedOutputStream streamCache, String cacheName, Map<String,String> cachedObjects)
      Run length decode. If both data and cached stream are present it will check they are identical
      Specified by:
      decode in class Filter
      Parameters:
      bis - BufferedInputStream to be decoded
      streamCache - BufferedOutputStream of decoded data
      cacheName - Name of the cache object
      cachedObjects - Map of cache objects
    • encode

      public byte[] encode(byte[] data)
      RunLength encoding is currently unsupported
      Specified by:
      encode in class Filter
    • encode

      public void encode(BufferedInputStream bis, BufferedOutputStream bos) throws Exception
      RunLength encoding is currently unsupported
      Specified by:
      encode in class Filter
      Throws:
      Exception