public class ByteArrayOutputStreamWithUnread extends java.io.ByteArrayOutputStream
| Constructor and Description |
|---|
ByteArrayOutputStreamWithUnread()
Construct an object without specifying an buffer size.
|
ByteArrayOutputStreamWithUnread(int size)
Construct an object with the specifying buffer size.
|
| Modifier and Type | Method and Description |
|---|---|
void |
unread(byte[] b)
Unread an array of bytes by removing them from the buffer.
|
void |
unread(byte[] b,
int off,
int len)
Unread a portion of an array of bytes by removing them from the buffer.
|
void |
unread(int b)
Unread a byte by removing it from the buffer.
|
public ByteArrayOutputStreamWithUnread()
public ByteArrayOutputStreamWithUnread(int size)
size - buffer sizepublic void unread(int b)
b - the int value whose low-order byte is to be unread.public void unread(byte[] b)
b - the byte array to push backpublic void unread(byte[] b, int off, int len)
b - the byte array to unread.off - the start offset of the data.len - the number of bytes to unread.Copyright © 2011–2023. All rights reserved.