public class StreamEncoder extends Object implements Encoder<InputStream>
Encoder that can write an InputStream to
disk.| Constructor and Description |
|---|
StreamEncoder(ArrayPool byteArrayPool) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
encode(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.
|
public StreamEncoder(ArrayPool byteArrayPool)
public boolean encode(InputStream data, File file, Options options)
Encoderencode in interface Encoder<InputStream>data - The data to write.file - The File to write the data to.options - The put of options to apply when encoding.