|
" 2013 FRC Java API " |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.squawk.debugger.Packet com.sun.squawk.debugger.ReplyPacket
public final class ReplyPacket
A ReplyPacket
encapsulates a JDWP reply packet.
Field Summary |
---|
Fields inherited from class com.sun.squawk.debugger.Packet |
---|
FLAG_NEEDS_REPLY, FLAG_REPLY |
Constructor Summary | |
---|---|
ReplyPacket(CommandPacket command,
int errorCode)
Creates a packet to send a reply to a command packet. |
|
ReplyPacket(int id,
int dataLength,
DataInputStream data,
int errorCode)
Creates a packet to encapsulate a received JDWP reply packet. |
Method Summary | |
---|---|
int |
getErrorCode()
|
int |
getFlags()
Gets the value for the 'flags' field in the header of this packet. |
String |
toString()
Returns a string representation of the object. |
void |
updateErrorCode(int errorCode)
|
protected void |
writeFields(DataOutputStream dos)
Hook for sublasses to write their specific fields to a packet being sent. |
Methods inherited from class com.sun.squawk.debugger.Packet |
---|
appendData, getID, getInputStream, getOutputStream, getSize, write |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ReplyPacket(CommandPacket command, int errorCode)
command
- the packet to which this is a replyerrorCode
- the error code of the replypublic ReplyPacket(int id, int dataLength, DataInputStream data, int errorCode) throws IOException
id
- the identifier in the replydataLength
- the length of the data to read from data
data
- the contents of the data field of the packeterrorCode
- the error code
IOException
Method Detail |
---|
public void updateErrorCode(int errorCode)
protected void writeFields(DataOutputStream dos) throws IOException
writeFields
in class Packet
dos
- the stream to write the fields to
IOException
- if an IO error occurspublic int getErrorCode()
public int getFlags()
Packet
getFlags
in class Packet
public String toString()
toString
method returns a string that
"textually represents" this object. The result should
be a concise but informative representation that is easy for a
person to read.
It is recommended that all subclasses override this method.
The toString
method for class Object
returns a string consisting of the name of the class of which the
object is an instance, the at-sign character `@
', and
the unsigned hexadecimal representation of the hash code of the
object. In other words, this method returns a string equal to the
value of:
getClass().getName() + '@' + Integer.toHexString(hashCode())
toString
in class Packet
|
" 2013 FRC Java API " |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |