Closeable
, Flushable
, AutoCloseable
Fields
protected byte[]
The buffer where data is stored.
protected int
The number of valid bytes in the buffer.
Constructors
Creates a new ByteArrayOutputStream
.
Creates a new ByteArrayOutputStream
, with a buffer capacity of the specified size, in bytes.
void
Closing a ByteArrayOutputStream
has no effect.
void
Resets the count
field of this ByteArrayOutputStream
to zero, so that all currently accumulated output in the output stream is discarded.
int
Returns the current size of the buffer.
byte[]
Creates a newly allocated byte array.
Converts the buffer's contents into a string decoding bytes using the default charset.
Converts the buffer's contents into a string by decoding the bytes using the named
charset
.
Converts the buffer's contents into a string by decoding the bytes using the specified
charset
.
void
write(byte[] b, int off, int len)
Writes len
bytes from the specified byte array starting at offset off
to this ByteArrayOutputStream
.
void
Writes the specified byte to this ByteArrayOutputStream
.
void
Writes the complete contents of the specified byte array to this ByteArrayOutputStream
.
void
Writes the complete contents of this ByteArrayOutputStream
to the specified output stream argument, as if by calling the output stream's write method using out.write(buf, 0, count)
.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4