Class ByteBufferEncoder

  • All Implemented Interfaces:
    Encoder<java.nio.ByteBuffer>

    public class ByteBufferEncoder
    extends java.lang.Object
    implements Encoder<java.nio.ByteBuffer>
    Writes ByteBuffers to Files.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean encode​(java.nio.ByteBuffer data, java.io.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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ByteBufferEncoder

        public ByteBufferEncoder()
    • Method Detail

      • encode

        public boolean encode​(@NonNull
                              java.nio.ByteBuffer data,
                              @NonNull
                              java.io.File file,
                              @NonNull
                              Options options)
        Description copied from interface: Encoder
        Writes the given data to the given output stream and returns True if the write completed successfully and should be committed.
        Specified by:
        encode in interface Encoder<java.nio.ByteBuffer>
        Parameters:
        data - The data to write.
        file - The file to write the data to.
        options - The set of options to apply when encoding.