public final class ArrayOutput extends PrintOutput
ByteArrayOutputStream
class. Bytes that exceed an
optional maximum are ignored.Constructor and Description |
---|
ArrayOutput() |
Modifier and Type | Method and Description |
---|---|
byte[] |
buffer()
Returns the internal buffer.
|
byte[] |
finish()
Returns the output as byte array, and invalidates the internal array.
|
ArrayOutput |
normalize()
Normalizes newlines in the byte array.
|
void |
reset()
Resets the internal buffer.
|
byte[] |
toArray()
Returns the output as byte array.
|
String |
toString() |
void |
write(int value) |
close, encoding, finished, flush, get, print, print, print, println, println, setLimit, size
write, write
public void write(int value)
write
in class PrintOutput
public ArrayOutput normalize()
public byte[] toArray()
public byte[] finish()
public byte[] buffer()
public void reset()
Copyright © 2005–2015 BaseX Team. All rights reserved.