|
||||||||||
| 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 Packetpublic void limit(int limit)
limit in interface Packetpublic Packet slice()
slice in interface Packetpublic Packet duplicate()
duplicate in interface Packet
public Object duplicate(ClassLoader cl)
throws IOException
duplicate in interface PacketIOExceptionpublic void flip()
flip in interface Packetpublic int position()
position in interface Packetpublic int limit()
limit in interface Packetpublic int remaining()
remaining in interface Packetpublic void rewind()
rewind in interface Packetpublic boolean hasRemaining()
hasRemaining in interface Packetpublic void clear()
clear in interface Packetpublic int capacity()
capacity in interface Packet
public void writeTo(OutputStream out)
throws IOException
Packet
writeTo in interface PacketIOException
public void writeTo(DataOutput out)
throws IOException
writeTo in interface PacketIOExceptionpublic int read()
read in interface PacketPacket.read()
public int read(byte[] data,
int offset,
int length)
read in interface PacketPacket.read(byte[], int, int)public boolean write(int data)
write in interface PacketPacket.write(int)
public int write(byte[] data,
int offset,
int length)
write in interface PacketPacket.write(byte[], int, int)public int read(Packet dest)
read in interface Packetpublic String toString()
toString in class Objectpublic Object narrow(Class target)
Packet
narrow in interface Packetpublic Packet.ByteSequence asByteSequence()
asByteSequence in interface Packetpublic byte[] sliceAsBytes()
sliceAsBytes in interface Packetpublic void dispose()
Disposable
dispose in interface Disposable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||