Packet
PacketPool.PooledPacket
public abstract class FilterPacket extends Object implements Packet
Constructor | Description |
---|---|
FilterPacket(Packet next) |
Modifier and Type | Method | Description |
---|---|---|
ByteSequence |
asByteSequence() |
|
int |
capacity() |
|
void |
clear() |
|
void |
dispose() |
|
Packet |
duplicate() |
|
Object |
duplicate(ClassLoader cl) |
|
abstract Packet |
filter(Packet packet) |
|
void |
flip() |
|
Object |
getAdapter(Class target) |
|
boolean |
hasRemaining() |
|
int |
limit() |
|
void |
limit(int limit) |
|
int |
position() |
|
void |
position(int position) |
|
int |
read() |
|
int |
read(byte[] data,
int offset,
int length) |
|
int |
read(Packet dest) |
|
int |
remaining() |
|
void |
rewind() |
|
Packet |
slice() |
|
byte[] |
sliceAsBytes() |
|
int |
write(byte[] data,
int offset,
int length) |
|
boolean |
write(int data) |
|
void |
writeTo(DataOutput out) |
|
void |
writeTo(OutputStream out) |
Writes the remaing bytes in the packet to the output stream.
|
protected final Packet next
public FilterPacket(Packet next)
public ByteSequence asByteSequence()
asByteSequence
in interface Packet
public boolean hasRemaining()
hasRemaining
in interface Packet
public Object getAdapter(Class target)
getAdapter
in interface Packet
public byte[] sliceAsBytes()
sliceAsBytes
in interface Packet
public int write(byte[] data, int offset, int length)
public void writeTo(OutputStream out) throws IOException
Packet
writeTo
in interface Packet
IOException
public void writeTo(DataOutput out) throws IOException
writeTo
in interface Packet
IOException
public Object duplicate(ClassLoader cl) throws IOException
duplicate
in interface Packet
IOException
Copyright © 2005–2018. All rights reserved.