Closeable, Flushable, AutoCloseablepublic final class PacketByteArrayOutputStream extends OutputStream
| Constructor | Description |
|---|---|
PacketByteArrayOutputStream() |
|
PacketByteArrayOutputStream(int initialSize) |
| Modifier and Type | Method | Description |
|---|---|---|
protected Packet |
allocate() |
|
Packet |
getPacket() |
|
int |
position() |
|
void |
reset() |
|
void |
skip(int size) |
|
void |
write(byte[] b,
int off,
int len) |
|
void |
write(int b) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose, flush, writepublic PacketByteArrayOutputStream()
public PacketByteArrayOutputStream(int initialSize)
protected Packet allocate()
public void skip(int size)
public void write(int b)
throws IOException
write in class OutputStreamIOExceptionpublic void write(byte[] b,
int off,
int len)
throws IOException
write in class OutputStreamIOExceptionpublic Packet getPacket()
public void reset()
public int position()
Copyright © 2005–2018. All rights reserved.