class Decoder implements DecoderInterface
A general-purpose decoder implementation for composing custom decoders.
Methods
__construct(TransformInterface $decodeTransform)
Construct a new decoder. |
||
TransformInterface |
decodeTransform()
Get the decode transform. |
|
string |
decode(string $data)
Decode the supplied data. |
|
TransformStreamInterface |
createDecodeStream(integer|null $bufferSize = null)
Create a new decode stream. |
Details
at line 28
public
__construct(TransformInterface $decodeTransform)
Construct a new decoder.
at line 38
public TransformInterface
decodeTransform()
Get the decode transform.
at line 51
public string
decode(string $data)
Decode the supplied data.
at line 70
public TransformStreamInterface
createDecodeStream(integer|null $bufferSize = null)
Create a new decode stream.