Java Doc for Transport.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.Transport

All known Subclasses:   com.sun.cldchi.tools.memoryprofiler.jdwp.SocketTransport,
Transport
abstract class Transport (Code)
This abstract class represents a generic transport for JDWP. In KJDB it's used its subclass SocketTransport.
See Also:   jdwp.SocketTransport


Field Summary
public  VectorReplies
     A list of received JDWP repliesa and still not requested by other parts of the code.


Method Summary
public  voidHandshake()
     Performs JDWP "handshake" procedure (undocumented ?).
abstract public  intavailable()
     Returns the number of bytes that can be received immediately.
abstract public  intread()
     Receives the next byte of data.
public  voidreceive()
     Receives all available JDWP reply packets and places them into the vector Replies.
public  ReplyreceiveEvent(int command, int Delay)
     Tries to receive a JDWP event.
public  ReplyreceiveReply()
     Receives JDWP reply packet.
public  ReplyreceiveReply(int ReplyID)
     Tries to receive a JDWP reply packet with specified ID.
public  ReplyreceiveReply(int ReplyID, int Delay)
     Tries to receive a JDWP reply packet with specified ID.
public  voidsendBadCommandPacket(Command c, int WrongSize)
     Sends JDWP command packet with wrong length field.
public  voidsendCommand(Command c)
     Sends JDWP command packet.
abstract public  voidwrite(int b)
     Sends the specified byte via JDWP.
public  voidwrite(byte[] b, int off, int len)
     Sends the specified bytes via JDWP.

Field Detail
Replies
public Vector Replies(Code)
A list of received JDWP repliesa and still not requested by other parts of the code.





Method Detail
Handshake
public void Handshake() throws IOException(Code)
Performs JDWP "handshake" procedure (undocumented ?). It sends a "JDWP-Handshake" string and waits for receiving the same string. After handshaking the JDWP connection is considered estblished.



available
abstract public int available() throws IOException(Code)
Returns the number of bytes that can be received immediately. the number of bytes that can be received immediately



read
abstract public int read() throws IOException(Code)
Receives the next byte of data. The value byte is returned as an int in the range 0 to 255. If no byte is available, the value -1 is returned. the next byte that is read via JDWP



receive
public void receive() throws IOException(Code)
Receives all available JDWP reply packets and places them into the vector Replies. This method is overwritten in KJDB and the code below is not used.
See Also:   jdwp.SocketTransport
See Also:   jdwp.SocketTransportImpl



receiveEvent
public Reply receiveEvent(int command, int Delay) throws IOException(Code)
Tries to receive a JDWP event. It looks into a list of already received packets and tries to locate it. If the desired packet is not found, is makes a pause and then tries to receive the deired reply again. In case of timeout Reply.errNotAvailable is returned.
Parameters:
  command - a command number for Event/Composite JDWP command(should be always 0x4064)
Parameters:
  Delay - a timeout for this operation a JDWP event or Reply.errNotAvailable if not found



receiveReply
public Reply receiveReply() throws IOException(Code)
Receives JDWP reply packet. If there is no reply packet available, function returns packet with error code Reply.errNotAvailable. a JDWP reply or Reply.errNotAvailable if notavailable



receiveReply
public Reply receiveReply(int ReplyID) throws IOException(Code)
Tries to receive a JDWP reply packet with specified ID. It looks into a list of already received packets and tries to locate it. If the desired packet is not found, Reply.errNotAvailable is returned.
Parameters:
  ReplyID - an ID of the desired JDWP reply packet a JDWP reply packet with specified ID or Reply.errNotAvailable if not found



receiveReply
public Reply receiveReply(int ReplyID, int Delay) throws IOException(Code)
Tries to receive a JDWP reply packet with specified ID. It looks into a list of already received packets and tries to locate it. If the desired packet is not found, is makes a pause and then tries to receive the deired reply again. In case of timeout Reply.errNotAvailable is returned.
Parameters:
  ReplyID - an ID of the desired JDWP reply packet
Parameters:
  Delay - a timeout for this operation a JDWP reply packet with specified ID or Reply.errNotAvailable if not found



sendBadCommandPacket
public void sendBadCommandPacket(Command c, int WrongSize) throws IOException(Code)
Sends JDWP command packet with wrong length field. This method is never used by KJDB but it's used by CLDC-DI and JavaCard BackEnd test suite.
Parameters:
  c - a command to be sent
Parameters:
  WrongSize - a size of the packet



sendCommand
public void sendCommand(Command c) throws IOException(Code)
Sends JDWP command packet.
Parameters:
  c - a command to be sent



write
abstract public void write(int b) throws IOException(Code)
Sends the specified byte via JDWP.
Parameters:
  b - a byte to be sent



write
public void write(byte[] b, int off, int len) throws IOException(Code)
Sends the specified bytes via JDWP.
Parameters:
  b - an array of bytes
Parameters:
  off - an offset of the first byte to be sent
Parameters:
  len - a number of bytes to be sent



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.