-
- All Implemented Interfaces:
-
com.mobwith.imgmodule.load.Encoder
public class StreamEncoder implements Encoder<InputStream>
An com.mobwith.imgmodule.load.Encoder that can write an InputStream to disk.
-
-
Constructor Summary
Constructors Constructor Description StreamEncoder(ArrayPool byteArrayPool)
-
Method Summary
-
-
Constructor Detail
-
StreamEncoder
StreamEncoder(ArrayPool byteArrayPool)
-
-
Method Detail
-
encode
boolean encode(@NonNull() InputStream data, @NonNull() File file, @NonNull() Options options)
Writes the given data to the given output stream and returns True if the write completedsuccessfully and should be committed.
- Parameters:
data- The data to write.file- The file to write the data to.options- The set of options to apply when encoding.
-
-
-
-