public interface Packet
Modifier and Type | Method and Description |
---|---|
ByteSequence |
asByteSequence() |
int |
capacity() |
void |
clear() |
void |
dispose() |
Packet |
duplicate() |
Object |
duplicate(ClassLoader cl) |
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.
|
int position()
void position(int position)
int limit()
void limit(int limit)
void flip()
int remaining()
void rewind()
boolean hasRemaining()
void clear()
Packet slice()
Packet duplicate()
Object duplicate(ClassLoader cl) throws IOException
IOException
int capacity()
void dispose()
ByteSequence asByteSequence()
byte[] sliceAsBytes()
void writeTo(OutputStream out) throws IOException
out
- IOException
void writeTo(DataOutput out) throws IOException
IOException
int read()
int read(byte[] data, int offset, int length)
boolean write(int data)
int write(byte[] data, int offset, int length)
int read(Packet dest)
Copyright © 2005–2016 The Apache Software Foundation. All rights reserved.