|
|||||||||
| Home >> All >> org >> eclipse >> jdi >> internal >> [ jdwp overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.eclipse.jdi.internal.jdwp
Class JdwpPacket

java.lang.Objectorg.eclipse.jdi.internal.jdwp.JdwpPacket
- Direct Known Subclasses:
- JdwpCommandPacket, JdwpReplyPacket
- public abstract class JdwpPacket
- extends java.lang.Object
This class implements the corresponding Java Debug Wire Protocol (JDWP) packet declared by the JDWP specification.
| Field Summary | |
protected byte[] |
fDataBuf
|
protected byte |
fFlags
|
private static java.lang.String[] |
fgFlagStrings
Map with Strings for flag bits. |
protected int |
fId
Header fields. |
static byte |
FLAG_REPLY_PACKET
General JDWP constants. |
protected static int |
MIN_PACKET_LENGTH
|
| Constructor Summary | |
JdwpPacket()
|
|
| Method Summary | |
byte[] |
data()
|
java.io.DataInputStream |
dataInStream()
|
static void |
getConstantMaps()
Retrieves constant mappings. |
int |
getDataLength()
|
static java.lang.String[] |
getFlagMap()
|
byte |
getFlags()
|
int |
getId()
|
int |
getLength()
|
static JdwpPacket |
read(java.io.InputStream inStream)
Reads complete packet. |
protected abstract void |
readSpecificHeaderFields(java.io.DataInputStream dataInStream)
Reads header fields that are specific for a type of packet. |
void |
setData(byte[] data)
Assigns data to packet. |
(package private) void |
setFlags(byte flags)
Set Flags. |
(package private) void |
setId(int id)
Set Id. |
void |
write(java.io.OutputStream outStream)
Writes complete packet. |
protected void |
writeData(java.io.DataOutputStream dataOutStream)
Writes data of packet. |
protected void |
writeHeader(java.io.DataOutputStream dataOutStream)
Writes header of packet. |
protected abstract void |
writeSpecificHeaderFields(java.io.DataOutputStream dataOutStream)
Writes header fields that are specific for a type of packet. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
FLAG_REPLY_PACKET
public static final byte FLAG_REPLY_PACKET
- General JDWP constants.
- See Also:
- Constant Field Values
MIN_PACKET_LENGTH
protected static final int MIN_PACKET_LENGTH
- See Also:
- Constant Field Values
fgFlagStrings
private static java.lang.String[] fgFlagStrings
- Map with Strings for flag bits.
fId
protected int fId
- Header fields.
fFlags
protected byte fFlags
fDataBuf
protected byte[] fDataBuf
| Constructor Detail |
JdwpPacket
public JdwpPacket()
| Method Detail |
setId
void setId(int id)
- Set Id.
getId
public int getId()
setFlags
void setFlags(byte flags)
- Set Flags.
getFlags
public byte getFlags()
getLength
public int getLength()
getDataLength
public int getDataLength()
data
public byte[] data()
dataInStream
public java.io.DataInputStream dataInStream()
setData
public void setData(byte[] data)
- Assigns data to packet.
readSpecificHeaderFields
protected abstract void readSpecificHeaderFields(java.io.DataInputStream dataInStream) throws java.io.IOException
- Reads header fields that are specific for a type of packet.
writeSpecificHeaderFields
protected abstract void writeSpecificHeaderFields(java.io.DataOutputStream dataOutStream) throws java.io.IOException
- Writes header fields that are specific for a type of packet.
read
public static JdwpPacket read(java.io.InputStream inStream) throws java.io.IOException
- Reads complete packet.
write
public void write(java.io.OutputStream outStream) throws java.io.IOException
- Writes complete packet.
writeHeader
protected void writeHeader(java.io.DataOutputStream dataOutStream) throws java.io.IOException
- Writes header of packet.
writeData
protected void writeData(java.io.DataOutputStream dataOutStream) throws java.io.IOException
- Writes data of packet.
getConstantMaps
public static void getConstantMaps()
- Retrieves constant mappings.
getFlagMap
public static java.lang.String[] getFlagMap()
|
|||||||||
| Home >> All >> org >> eclipse >> jdi >> internal >> [ jdwp overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
org.eclipse.jdi.internal.jdwp.JdwpPacket