Package com.bumptech.glide.load.model
Class StreamEncoder
java.lang.Object
com.bumptech.glide.load.model.StreamEncoder
- All Implemented Interfaces:
Encoder<InputStream>
An
Encoder that can write an InputStream to disk.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanencode(InputStream 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
-
StreamEncoder
-
-
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<InputStream>- Parameters:
data- The data to write.file- The file to write the data to.options- The set of options to apply when encoding.
-