public class ArrayOfByteArraysOutput extends AbstractRockerOutput<ArrayOfByteArraysOutput>
| Modifier and Type | Field and Description |
|---|---|
static RockerOutputFactory<ArrayOfByteArraysOutput> |
FACTORY |
byteLength, charset, contentType| Constructor and Description |
|---|
ArrayOfByteArraysOutput(ContentType contentType,
Charset charset) |
ArrayOfByteArraysOutput(ContentType contentType,
String charsetName) |
| Modifier and Type | Method and Description |
|---|---|
InputStream |
asInputStream() |
ReadableByteChannel |
asReadableByteChannel() |
List<byte[]> |
getArrays() |
byte[] |
toByteArray()
Expensive operation of allocating a byte array to hold the entire contents
of this output and then copying each underlying byte array into this new
byte array.
|
String |
toString() |
ArrayOfByteArraysOutput |
w(byte[] bytes) |
ArrayOfByteArraysOutput |
w(String string)
Writes a String to the output.
|
getByteLength, getCharset, getContentTypepublic static RockerOutputFactory<ArrayOfByteArraysOutput> FACTORY
public ArrayOfByteArraysOutput(ContentType contentType, String charsetName)
public ArrayOfByteArraysOutput(ContentType contentType, Charset charset)
public List<byte[]> getArrays()
public ArrayOfByteArraysOutput w(String string) throws IOException
RockerOutputstring - The string to writeIOException - Thrown on exception.public ArrayOfByteArraysOutput w(byte[] bytes) throws IOException
IOExceptionpublic byte[] toByteArray()
public String toString()
toString in interface RockerOutput<AbstractRockerOutput>toString in class Objectpublic ReadableByteChannel asReadableByteChannel()
public InputStream asInputStream()
Copyright © 2016–2020 Fizzed, Inc. All rights reserved.