@Beta public class TestableByteArrayOutputStream extends ByteArrayOutputStream
Beta buf, count| Constructor | Description |
|---|---|
TestableByteArrayOutputStream() |
| Modifier and Type | Method | 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, writeToclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitflush, writepublic void close()
throws IOException
Overriding is supported, but overriding method must call the super implementation.
close in interface Closeableclose in class ByteArrayOutputStreamIOExceptionpublic final byte[] getBuffer()
public final boolean isClosed()
Copyright © 2011–2019 Google. All rights reserved.