Interface Pipe.Encoder<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 writing complex objects to a pipe.
- See Also:
-
Method Summary
-
Method Details
-
encode
Called to encode an object.- Parameters:
object
- object which was passed to thewriteEncode
methodlength
- requested buffer lengthbuffer
- buffer to encode intooffset
- buffer offset to start writing into- Returns:
- the updated offset
- Throws:
IOException
-
encode
Called to encode an object when the requested length was too large. By default, a temporary buffer is allocated and then the regular encode method is called.- Parameters:
object
- object which was passed to thewriteEncode
methodlength
- requested buffer lengthpipe
- pipe to write to- Throws:
IOException
-