@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, writeTo
flush, write
public void close() throws IOException
Overriding is supported, but overriding method must call the super implementation.
close
in interface Closeable
close
in interface AutoCloseable
close
in class ByteArrayOutputStream
IOException
public final byte[] getBuffer()
public final boolean isClosed()
Copyright © 2011–2020 Google. All rights reserved.