Java Doc for Packet.java in  » 6.0-JDK-Modules » j2me » com » sun » cldchi » tools » memoryprofiler » jdwp » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » 6.0 JDK Modules » j2me » com.sun.cldchi.tools.memoryprofiler.jdwp 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.sun.cldchi.tools.memoryprofiler.jdwp.ByteBuffer
      com.sun.cldchi.tools.memoryprofiler.jdwp.Packet

All known Subclasses:   com.sun.cldchi.tools.memoryprofiler.jdwp.Command,  com.sun.cldchi.tools.memoryprofiler.jdwp.Reply,
Packet
class Packet extends ByteBuffer (Code)
This class encapsulates JDWP packet. It based on ByteBuffer but adds methods for working with data specific for JDWP packet. This class is not used directly, its subclasses Command and Reply are used instead. For information about JDWP packet see JDWP specification.
See Also:   jdwp.ByteBuffer
See Also:   jdwp.Command
See Also:   jdwp.Reply


Field Summary
final public static  intCommandOffset
     Offset of the "command number" field in the JDWP packet.
final public static  intErrorCodeOffset
     Offset of the "error code" field in the JDWP packet.
final public static  intFlagsOffset
     Offset of the "flags" field in the JDWP packet.
final public static  intIdOffset
     Offset of the "packet ID" field in the JDWP packet.
final public static  intLengthOffset
     Offset of the "packet length" field in the JDWP packet.
final public static  intPacketHeaderSize
     Size of JDWP packet's header.
final public static  intflNoFlags
     JDWP packet flag "no flags".
final public static  intflReply
     JDWP packet flag Reply.

Constructor Summary
public  Packet()
     Create a new JDWP packet fills its header by zeros.

Method Summary
public  voidaddFieldID(long b)
     Adds a field ID to the end of JDWP packet.
public  voidaddFrameID(long b)
     Adds a frame ID to the end of JDWP packet.
public  voidaddMethodID(long b)
     Adds a method ID to the end of JDWP packet.
public  voidaddObjectID(long b)
     Adds an object ID to the end of JDWP packet.
public  voidaddReferenceTypeID(long b)
     Adds a reference type ID to the end of JDWP packet.
public  intgetDataSize()
     Returns size of packet's data (i.e., size of the packet excluding header).
public  longgetFieldID()
     Tries to read next field ID from the buffer. Value is read is one that is pointed by reading marker.
public  intgetFlags()
     Returns flags of the JDWP packet.
public  longgetFrameID()
     Tries to read next frame ID from the buffer. Value is read is one that is pointed by reading marker.
public  intgetID()
     Returns ID of the JDWP packet.
public  longgetMethodID()
     Tries to read next method ID from the buffer. Value is read is one that is pointed by reading marker.
public  longgetObjectID()
     Tries to read next object ID from the buffer. Value is read is one that is pointed by reading marker.
public  longgetReferenceTypeID()
     Tries to read next reference type ID from the buffer. Value is read is one that is pointed by reading marker.
public  Vectorparse(String how)
     Parses the JDWP packet according to the specified mask.
public  voidresetDataParser()
     Moves the reading marker to the beginning of packet data (after the header).
public  voidsetFlags(int Flags)
     Sets flags of the JDWP packet.
public  voidsetID(int Id)
     Sets ID of the JDWP packet.
public  voidsetLength()
    

Field Detail
CommandOffset
final public static int CommandOffset(Code)
Offset of the "command number" field in the JDWP packet.



ErrorCodeOffset
final public static int ErrorCodeOffset(Code)
Offset of the "error code" field in the JDWP packet.



FlagsOffset
final public static int FlagsOffset(Code)
Offset of the "flags" field in the JDWP packet.



IdOffset
final public static int IdOffset(Code)
Offset of the "packet ID" field in the JDWP packet.



LengthOffset
final public static int LengthOffset(Code)
Offset of the "packet length" field in the JDWP packet.



PacketHeaderSize
final public static int PacketHeaderSize(Code)
Size of JDWP packet's header.



flNoFlags
final public static int flNoFlags(Code)
JDWP packet flag "no flags". Indicates that the packet is a command.



flReply
final public static int flReply(Code)
JDWP packet flag Reply. Indicates that the packet is a reply.




Constructor Detail
Packet
public Packet()(Code)
Create a new JDWP packet fills its header by zeros.




Method Detail
addFieldID
public void addFieldID(long b)(Code)
Adds a field ID to the end of JDWP packet.
Parameters:
  b - ID to be added



addFrameID
public void addFrameID(long b)(Code)
Adds a frame ID to the end of JDWP packet.
Parameters:
  b - ID to be added



addMethodID
public void addMethodID(long b)(Code)
Adds a method ID to the end of JDWP packet.
Parameters:
  b - ID to be added



addObjectID
public void addObjectID(long b)(Code)
Adds an object ID to the end of JDWP packet.
Parameters:
  b - ID to be added



addReferenceTypeID
public void addReferenceTypeID(long b)(Code)
Adds a reference type ID to the end of JDWP packet.
Parameters:
  b - ID to be added



getDataSize
public int getDataSize()(Code)
Returns size of packet's data (i.e., size of the packet excluding header). size of packet's data



getFieldID
public long getFieldID() throws BoundException(Code)
Tries to read next field ID from the buffer. Value is read is one that is pointed by reading marker. After completing the operation the reading marker is incremented. current field ID from the buffer
throws:
  BoundException - if value to be read is outside the filled area



getFlags
public int getFlags()(Code)
Returns flags of the JDWP packet. flags of the JDWP packet.



getFrameID
public long getFrameID() throws BoundException(Code)
Tries to read next frame ID from the buffer. Value is read is one that is pointed by reading marker. After completing the operation the reading marker is incremented. current frame ID from the buffer
throws:
  BoundException - if value to be read is outside the filled area



getID
public int getID()(Code)
Returns ID of the JDWP packet. ID of the JDWP packet



getMethodID
public long getMethodID() throws BoundException(Code)
Tries to read next method ID from the buffer. Value is read is one that is pointed by reading marker. After completing the operation the reading marker is incremented. current method ID from the buffer
throws:
  BoundException - if value to be read is outside the filled area



getObjectID
public long getObjectID() throws BoundException(Code)
Tries to read next object ID from the buffer. Value is read is one that is pointed by reading marker. After completing the operation the reading marker is incremented. current object ID from the buffer
throws:
  BoundException - if value to be read is outside the filled area



getReferenceTypeID
public long getReferenceTypeID() throws BoundException(Code)
Tries to read next reference type ID from the buffer. Value is read is one that is pointed by reading marker. After completing the operation the reading marker is incremented. current reference type ID from the buffer
throws:
  BoundException - if value to be read is outside the filled area



parse
public Vector parse(String how) throws BoundException(Code)
Parses the JDWP packet according to the specified mask. The mask specifies what elements are contained in JDWP packet's data. The rules are as follows:
  • b - a byte value
  • i - an int value
  • S - a short value
  • l - a long value
  • s - a string value
  • f - a field ID
  • m - a method ID
  • o - an object ID
  • r - a reference type ID
  • F - a frame ID
  • v - a value. The first byte indicates type tag of the variable, the second is a variable's value.
  • . - a set of data in the end of packet that should not be parsed.
  • i(<submask>) - the first integer indicates how many times submask is appeared in the packet.
For example, the mask li(rm) means that the first element of packet's data is a long value, then an int value that indicates how many times the pair "reference type ID - method ID" is appeared later.
Parameters:
  how - a mask that indicates how to parse a packet. a vector of parsed elements of the packet's data. The classesthat represent different types of elements are written below:
  • b - java.lang.Integer
  • i - java.lang.Integer
  • S - java.lang.Integer
  • l - java.lang.Long
  • s - java.lang.String
  • f - java.lang.Long
  • m - java.lang.Long
  • o - java.lang.Long
  • r - java.lang.Long
  • F - java.lang.Long
  • v - The tag of the value is represented byjava.lang.Integer. The value itself is representedaccording to this table



resetDataParser
public void resetDataParser()(Code)
Moves the reading marker to the beginning of packet data (after the header). To learn about reading marker see ByteBuffer.
See Also:   jdwp.ByteBuffer



setFlags
public void setFlags(int Flags)(Code)
Sets flags of the JDWP packet.
Parameters:
  Flags - flags to be set



setID
public void setID(int Id)(Code)
Sets ID of the JDWP packet.
Parameters:
  Id - ID of the JDWP packet



setLength
public void setLength()(Code)
Sets "packet length" field of the JDWP packet



Fields inherited from com.sun.cldchi.tools.memoryprofiler.jdwp.ByteBuffer
protected byte[] bytes(Code)(Java Doc)
int parseOffset(Code)(Java Doc)

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)

Methods inherited from java.lang.Object
public boolean equals(Object obj)(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.