org.decisiondeck.utils
Class ByteArraysSupplier
java.lang.Object
org.decisiondeck.utils.ByteArraysSupplier
- All Implemented Interfaces:
- OutputSupplier<ByteArrayOutputStream>
public class ByteArraysSupplier
- extends Object
- implements OutputSupplier<ByteArrayOutputStream>
ByteArraysSupplier
public ByteArraysSupplier()
getArrays
public Collection<ByteArrayOutputStream> getArrays()
- Retrieves the arrays created on demand by this object, as a read-only view. The byte arrays in the returned set
are writable (but they are not intended to be written). The iteration order of the returned collection matches
the order of the requested outputs.
- Returns:
- not
null.
getWrittenStrings
public Collection<String> getWrittenStrings(Charset charset)
getOutput
public ByteArrayOutputStream getOutput()
throws IOException
- Specified by:
getOutput in interface OutputSupplier<ByteArrayOutputStream>
- Throws:
IOException
Copyright © 2011. All Rights Reserved.