public final class PacketByteArrayOutputStream extends OutputStream
Constructor and Description |
---|
PacketByteArrayOutputStream() |
PacketByteArrayOutputStream(int initialSize) |
Modifier and Type | Method and 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) |
close, flush, write
public PacketByteArrayOutputStream()
public PacketByteArrayOutputStream(int initialSize)
protected Packet allocate()
public void skip(int size)
public void write(int b) throws IOException
write
in class OutputStream
IOException
public void write(byte[] b, int off, int len) throws IOException
write
in class OutputStream
IOException
public Packet getPacket()
public void reset()
public int position()
Copyright © 2005–2016 The Apache Software Foundation. All rights reserved.