|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.activeio.packet.AppendedPacket
public final class AppendedPacket
Appends two packets together.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.activeio.Packet |
---|
Packet.ByteSequence |
Constructor Summary | |
---|---|
AppendedPacket(Packet first,
Packet second)
Deprecated. use join(Packet, Packet) instead. |
Method Summary | |
---|---|
Packet.ByteSequence |
asByteSequence()
|
int |
capacity()
|
void |
clear()
|
void |
dispose()
This method should not throw any exceptions. |
Packet |
duplicate()
|
Object |
duplicate(ClassLoader cl)
|
void |
flip()
|
boolean |
hasRemaining()
|
static Packet |
join(Packet first,
Packet last)
|
int |
limit()
|
void |
limit(int limit)
|
Object |
narrow(Class target)
Used to get a richer metadata interface to the packet. |
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()
|
String |
toString()
|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AppendedPacket(Packet first, Packet second)
join(Packet, Packet)
instead.
Method Detail |
---|
public static Packet join(Packet first, Packet last)
public void position(int position)
position
in interface Packet
public void limit(int limit)
limit
in interface Packet
public Packet slice()
slice
in interface Packet
public Packet duplicate()
duplicate
in interface Packet
public Object duplicate(ClassLoader cl) throws IOException
duplicate
in interface Packet
IOException
public void flip()
flip
in interface Packet
public int position()
position
in interface Packet
public int limit()
limit
in interface Packet
public int remaining()
remaining
in interface Packet
public void rewind()
rewind
in interface Packet
public boolean hasRemaining()
hasRemaining
in interface Packet
public void clear()
clear
in interface Packet
public int capacity()
capacity
in interface Packet
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 int read()
read
in interface Packet
Packet.read()
public int read(byte[] data, int offset, int length)
read
in interface Packet
Packet.read(byte[], int, int)
public boolean write(int data)
write
in interface Packet
Packet.write(int)
public int write(byte[] data, int offset, int length)
write
in interface Packet
Packet.write(byte[], int, int)
public int read(Packet dest)
read
in interface Packet
public String toString()
toString
in class Object
public Object narrow(Class target)
Packet
narrow
in interface Packet
public Packet.ByteSequence asByteSequence()
asByteSequence
in interface Packet
public byte[] sliceAsBytes()
sliceAsBytes
in interface Packet
public void dispose()
Disposable
dispose
in interface Disposable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |