public final class ArrayOutput extends PrintOutput
ByteArrayOutputStream
.
This implementation is faster because functions are not synchronized.max, os, size
Constructor and Description |
---|
ArrayOutput()
Constructor.
|
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.
|
byte[] |
next()
Returns an array with all elements and resets the internal buffer.
|
void |
reset()
Resets the internal buffer.
|
byte[] |
toArray()
Returns the output as byte array.
|
String |
toString() |
void |
write(int b) |
close, finished, flush, get, print, print, print, println, println, setLimit, size
write, write
public void write(int b)
write
in class PrintOutput
public byte[] toArray()
public byte[] next()
public byte[] finish()
public byte[] buffer()
public void reset()
Copyright © 2005–2023 BaseX Team. All rights reserved.