java.lang .Object com.sun.cldchi.tools.memoryprofiler.jdwp .ByteBuffer com.sun.cldchi.tools.memoryprofiler.jdwp .Packet com.sun.cldchi.tools.memoryprofiler.jdwp .Reply Field Summary final public static int errEvent JDWP Event/Composite command number.final public static int errNotAvailable Error code constant that indicates that JDWP reply packet is not
received as expected.final public static int errOk Error code constant that indicates that no error occured.final public static int errWrongPacketSize Error code constant that indicates that the packet has wrong size.
Method Summary static Reply Error (int ErrorCode) This method
prepares a JDWP reply packet with specified error code.public intgetErrorCode () Returns value of the "error code" field of JDWP reply packet.public booleanok () Returns true if this packet's error code equals zero.public voidsetErrorCode (long err) Sets value of the "error code" field of JDWP reply packet.public String toString () Returns a string representation of the reply packet.
errEvent final public static int errEvent (Code) JDWP Event/Composite command number.
errNotAvailable final public static int errNotAvailable (Code) Error code constant that indicates that JDWP reply packet is not
received as expected.
errOk final public static int errOk (Code) Error code constant that indicates that no error occured.
errWrongPacketSize final public static int errWrongPacketSize (Code) Error code constant that indicates that the packet has wrong size.
Error static Reply Error(int ErrorCode) (Code) This method
prepares a JDWP reply packet with specified error code.
Parameters: ErrorCode - a error code of the JDWP reply a JDWP reply with the specified error code
getErrorCode public int getErrorCode()(Code) Returns value of the "error code" field of JDWP reply packet.
a error code of JDWP reply
ok public boolean ok()(Code) Returns true if this packet's error code equals zero.
true
if the JDWP reply has error codeNONE
and false
otherwise
setErrorCode public void setErrorCode(long err)(Code) Sets value of the "error code" field of JDWP reply packet.
Parameters: err - a error code of JDWP reply that should be set
toString public String toString()(Code) Returns a string representation of the reply packet. This method
is used by BackEndTest
to print all the
replies that were not requested by other parts of code. It's useful
for localizing problems.
a string representation of the reply packetSee Also: jdwp.BackEndTest.printReplies
Methods inherited from com.sun.cldchi.tools.memoryprofiler.jdwp.ByteBuffer public void addByte(int b)(Code) (Java Doc) public void addBytes(byte[] b, int start, int len)(Code) (Java Doc) public void addID(long l, int count)(Code) (Java Doc) public void addInt(int b)(Code) (Java Doc) public void addLong(long l)(Code) (Java Doc) public void addShort(int b)(Code) (Java Doc) public void addString(String s)(Code) (Java Doc) public void deleteBytes(int count)(Code) (Java Doc) public int getByte() throws BoundException (Code) (Java Doc) public int getByte(int off) throws BoundException (Code) (Java Doc) public long getID(int count) throws BoundException (Code) (Java Doc) public long getID(int off, int count) throws BoundException (Code) (Java Doc) public int getInt() throws BoundException (Code) (Java Doc) public int getInt(int off) throws BoundException (Code) (Java Doc) public long getLong() throws BoundException (Code) (Java Doc) public long getLong(int off) throws BoundException (Code) (Java Doc) public int getShort() throws BoundException (Code) (Java Doc) public int getShort(int off) throws BoundException (Code) (Java Doc) public String getString() throws BoundException (Code) (Java Doc) public String getString(int off) throws BoundException (Code) (Java Doc) public boolean isParsed()(Code) (Java Doc) public int length()(Code) (Java Doc) public void putByte(int off, int b) throws BoundException (Code) (Java Doc) public void putBytes(int off, byte[] b, int start, int len) throws BoundException (Code) (Java Doc) public void putID(int off, long l, int count) throws BoundException (Code) (Java Doc) public void putInt(int off, int b) throws BoundException (Code) (Java Doc) public void putLong(int off, long l) throws BoundException (Code) (Java Doc) public void putShort(int off, int b) throws BoundException (Code) (Java Doc) public void resetBuffer()(Code) (Java Doc) public void resetParser()(Code) (Java Doc) public void resetParser(int i)(Code) (Java Doc) public String toString(int start)(Code) (Java Doc) public String toString()(Code) (Java Doc)