Class ByteBufferEncoder

java.lang.Object
com.bumptech.glide.load.model.ByteBufferEncoder
All Implemented Interfaces:
Encoder<ByteBuffer>

public class ByteBufferEncoder extends Object implements Encoder<ByteBuffer>
Writes ByteBuffers to Files.
  • Constructor Details

    • ByteBufferEncoder

      public ByteBufferEncoder()
  • Method Details

    • encode

      public boolean encode(@NonNull ByteBuffer data, @NonNull 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<ByteBuffer>
      Parameters:
      data - The data to write.
      file - The file to write the data to.
      options - The set of options to apply when encoding.