public class ByteArrayInOutStream extends ByteArrayOutputStream
The ByteArrayInputStream can be retrieved using getInputStream().
buf, count| Constructor and Description |
|---|
ByteArrayInOutStream()
Creates a new ByteArrayInOutStream.
|
ByteArrayInOutStream(int size)
Creates a new ByteArrayInOutStream, with a buffer capacity of the specified size, in bytes.
|
| Modifier and Type | Method and Description |
|---|---|
ByteArrayInputStream |
getInputStream()
Creates a new ByteArrayInputStream that uses the internal byte array buffer of this ByteArrayInOutStream instance as its buffer array.
|
close, reset, size, toByteArray, toString, toString, toString, write, write, writeToflush, writepublic ByteArrayInOutStream()
public ByteArrayInOutStream(int size)
size - the initial size.IllegalArgumentException - if size is negative.public ByteArrayInputStream getInputStream()
Copyright © 2020. All rights reserved.