Class StreamEncoder

  • All Implemented Interfaces:
    Encoder<java.io.InputStream>

    public class StreamEncoder
    extends java.lang.Object
    implements Encoder<java.io.InputStream>
    An Encoder that can write an InputStream to disk.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean encode​(java.io.InputStream data, java.io.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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • StreamEncoder

        public StreamEncoder​(ArrayPool byteArrayPool)
    • Method Detail

      • encode

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