public class InputStreamDecoder extends CoderAdapter implements Decoder.Binary<InputStream>
Decoder
for InputStream
.Decoder.Binary<T>, Decoder.BinaryStream<T>, Decoder.Text<T>, Decoder.TextStream<T>
Constructor and Description |
---|
InputStreamDecoder() |
Modifier and Type | Method and Description |
---|---|
InputStream |
decode(ByteBuffer bytes)
Decode the given bytes into an object of type T.
|
boolean |
willDecode(ByteBuffer bytes)
Answer whether the given bytes can be decoded into an object of type T.
|
destroy, init
public boolean willDecode(ByteBuffer bytes)
Decoder.Binary
willDecode
in interface Decoder.Binary<InputStream>
bytes
- the bytes to be decoded.public InputStream decode(ByteBuffer bytes) throws DecodeException
Decoder.Binary
decode
in interface Decoder.Binary<InputStream>
bytes
- the bytes to be decoded.DecodeException
Copyright © 2012-2014, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.