Class StreamEncoder

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

public class StreamEncoder extends Object implements Encoder<InputStream>
An Encoder that can write an InputStream to disk.
  • Constructor Details

    • StreamEncoder

      public StreamEncoder(ArrayPool byteArrayPool)
  • Method Details

    • encode

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