@Deprecated public class ByteBuffer extends OutputStream
ByteArrayOutputStream re-implementation.
This version allows one to read while writing is in progress.
| Constructor and Description |
|---|
ByteBuffer()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
long |
length()
Deprecated.
|
InputStream |
newInputStream()
Deprecated.
Creates an
InputStream that reads from the underlying buffer. |
String |
toString()
Deprecated.
|
void |
write(byte[] b,
int off,
int len)
Deprecated.
|
void |
write(int b)
Deprecated.
|
void |
writeTo(OutputStream os)
Deprecated.
Writes the contents of this buffer to another OutputStream.
|
close, flush, writepublic void write(byte[] b,
int off,
int len)
throws IOException
write in class OutputStreamIOExceptionpublic void write(int b)
throws IOException
write in class OutputStreamIOExceptionpublic long length()
public void writeTo(OutputStream os) throws IOException
IOExceptionpublic InputStream newInputStream()
InputStream that reads from the underlying buffer.Copyright © 2019. All rights reserved.