Interface Pipe.Decoder<T>
- Enclosing interface:
Pipe
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Support for efficiently reading complex objects from a pipe.
- See Also:
-
Method Summary
-
Method Details
-
decode
Called to decode an object.- Parameters:
object
- object which was passed to thereadDecode
methodlength
- requested buffer lengthbuffer
- buffer to decode fromoffset
- buffer offset to start reading from- Returns:
- the actual decoded object
- Throws:
IOException
-
decode
Called to decode an object when the requested length was too large. By default, a temporary buffer is allocated and then the regular decode method is called.- Parameters:
object
- object which was passed to thereadDecode
methodlength
- requested buffer lengthpipe
- pipe to read from- Throws:
IOException
-