@Beta public class TestableByteArrayOutputStream extends ByteArrayOutputStream
Beta buf, count| Constructor and Description |
|---|
TestableByteArrayOutputStream() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
byte[] |
getBuffer()
Returns the written buffer value as a modifiable byte array.
|
boolean |
isClosed()
Returns whether the output stream has been closed.
|
reset, size, toByteArray, toString, toString, toString, write, write, writeToflush, writepublic void close()
throws IOException
Overriding is supported, but overriding method must call the super implementation.
close in interface Closeableclose in interface AutoCloseableclose in class ByteArrayOutputStreamIOExceptionpublic final byte[] getBuffer()
public final boolean isClosed()
Copyright © 2011–2023 Google. All rights reserved.