| 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.
|
public void close()
throws java.io.IOException
Overriding is supported, but overriding method must call the super implementation.
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.ByteArrayOutputStreamjava.io.IOExceptionpublic final byte[] getBuffer()
public final boolean isClosed()
Copyright © 2011-2018 Google. All Rights Reserved.