Class DecodingInputStream

java.lang.Object
java.io.InputStream
java.io.FilterInputStream
org.cryptacular.io.DecodingInputStream
All Implemented Interfaces:
Closeable, AutoCloseable

public class DecodingInputStream extends FilterInputStream
Filters read bytes through a Decoder such that consumers obtain raw (decoded) bytes from read operations.
Author:
Middleware Services
  • Constructor Details

    • DecodingInputStream

      public DecodingInputStream(InputStream in, Decoder d)
      Creates a new instance that wraps the given stream and performs decoding using the given encoder component.
      Parameters:
      in - Input stream to wrap.
      d - Decoder that provides on-the-fly decoding.
  • Method Details