ZlibInput

This input filter can be used to perform decompression of zlib streams.

Constructors

this
this(InputStream stream, Encoding encoding, int windowBits)
this(InputStream stream)

Constructs a new zlib decompression filter. You need to pass in the stream that the decompression filter will read from. If you are using this filter with a conduit, the idiom to use is:

Destructor

~this
~this()
Undocumented in source.

Members

Enums

Encoding
enum Encoding

This enumeration allows you to specify the encoding of the compressed stream.

Functions

close
void close()

Closes the compression stream.

read
size_t read(void[] dst)

Decompresses data from the underlying conduit into a target array.

reset
void reset(InputStream stream, Encoding encoding, int windowBits)
void reset(InputStream stream)

Resets and re-initialises this instance.

seek
long seek(long offset, Anchor anchor)
Undocumented in source. Be warned that the author may not have intended to support it.

Inherited Members

From InputFilter

source
InputStream source;
Undocumented in source.
conduit
IConduit conduit()

Return the hosting conduit.

read
size_t read(void[] dst)

Read from conduit into a target array. The provided dst will be populated with content from the conduit.

load
void[] load(size_t max)

Load the bits from a stream, and return them all in an array. The dst array can be provided as an option, which will be expanded as necessary to consume the input.

flush
IOStream flush()

Clear any buffered content.

seek
long seek(long offset, Anchor anchor)

Seek on this stream. Target conduits that don't support seeking will throw an IOException.

input
InputStream input()

Return the upstream host of this filter.

close
void close()

Close the input.

Meta