public class ByteBufferEncoder extends Object implements Encoder<ByteBuffer>
ByteBuffers
to Files
.Constructor and Description |
---|
ByteBufferEncoder() |
Modifier and Type | Method and Description |
---|---|
boolean |
encode(ByteBuffer data,
File file,
Options options)
Writes the given data to the given output stream and returns True if the write completed
successfully and should be committed.
|
public boolean encode(@NonNull ByteBuffer data, @NonNull File file, @NonNull Options options)
Encoder
encode
in interface Encoder<ByteBuffer>
data
- The data to write.file
- The File to write the data to.options
- The put of options to apply when encoding.