public class EnhancedByteArrayOutputStream
extends java.io.ByteArrayOutputStream
Constructor and Description |
---|
EnhancedByteArrayOutputStream()
Default constructor.
|
EnhancedByteArrayOutputStream(int size)
Creates an EnhancedByteArrayOutputStream with the given initial buffer
size.
|
Modifier and Type | Method and Description |
---|---|
java.io.InputStream |
getInputStream()
Gets an input stream with the content of this EnhancedByteArrayOutputStream
|
byte[] |
toByteArray()
Gets the content of this EnhancedByteArrayOutputStream as byte array.
|
public EnhancedByteArrayOutputStream()
public EnhancedByteArrayOutputStream(int size)
size
- the initial size of the bufferpublic byte[] toByteArray()
toByteArray
in class java.io.ByteArrayOutputStream
public java.io.InputStream getInputStream()