@Deprecated public class RandomAccessByteArrayOutputStream extends OutputStream
| Constructor and Description |
|---|
RandomAccessByteArrayOutputStream()
Deprecated.
|
RandomAccessByteArrayOutputStream(int size)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Deprecated.
|
void |
reset()
Deprecated.
|
void |
setWriteIndex(int index)
Deprecated.
|
int |
size()
Deprecated.
|
byte[] |
toByteArray()
Deprecated.
|
ByteBuffer |
toByteBuffer()
Deprecated.
|
String |
toString()
Deprecated.
|
String |
toString(String charset)
Deprecated.
|
void |
write(byte[] b,
int off,
int len)
Deprecated.
|
void |
write(int b)
Deprecated.
|
void |
writeTo(OutputStream out)
Deprecated.
|
flush, writepublic RandomAccessByteArrayOutputStream()
public RandomAccessByteArrayOutputStream(int size)
public void write(int b)
write in class OutputStreampublic void write(byte[] b,
int off,
int len)
write in class OutputStreampublic int size()
public void setWriteIndex(int index)
public void reset()
public byte[] toByteArray()
public ByteBuffer toByteBuffer()
public void writeTo(OutputStream out) throws IOException
IOExceptionpublic String toString(String charset) throws UnsupportedEncodingException
UnsupportedEncodingExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class OutputStreamIOExceptionCopyright © 2011–2019 The Apache Software Foundation. All rights reserved.