Package com.bumptech.glide.load.model
Class ByteBufferEncoder
java.lang.Object
com.bumptech.glide.load.model.ByteBufferEncoder
- All Implemented Interfaces:
Encoder<ByteBuffer>
Writes
ByteBuffers to Files.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanencode(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.
-
Constructor Details
-
ByteBufferEncoder
public ByteBufferEncoder()
-
-
Method Details
-
encode
Description copied from interface:EncoderWrites the given data to the given output stream and returns True if the write completed successfully and should be committed.- Specified by:
encodein interfaceEncoder<ByteBuffer>- Parameters:
data- The data to write.file- The file to write the data to.options- The set of options to apply when encoding.
-