Methods Summary |
---|
public int | getLength()
return curWriteIndex;
|
public void | setData(byte[] d)
data = new byte[ d.length ];
System.arraycopy( d, 0, data, 0, data.length );
curWriteIndex = data.length;
curReadIndex = 0;
|
public java.lang.String | toString()
//return cmdSet+"/"+cmd+"/"+errorCode+"\n--->\n"+new String( data )+"\n<---\n";
StringBuffer s = new StringBuffer();
s.append(cmdSet).append("/").append(cmd).append("/").append(errorCode).append("\n--->\n");
for (int i = 0; i < data.length; i++) {
s.append(Integer.toHexString((int)((long)data[i] & 0xFF))).append(".");
}
s.append("\n<----\n");
return s.toString();
|
private static synchronized int | uniqID()
/*
* JDWP spec does not require this id to be sequential and
* increasing, but our implementation does. See
* VirtualMachine.notifySuspend, for example.
*/
return uID++;
|