Java Doc for Reference.java in  » 6.0-JDK-Modules » j2me » com » sun » io » j2me » jcrmi » 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.io.j2me.jcrmi 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.sun.io.j2me.jcrmi.Reference

Reference
class Reference implements RemoteRef(Code)
JCRMI remote reference.



Constructor Summary
 Reference(Protocol connection, short objectID, String hashModifier, String className)
     Creates new remote reference object.

Method Summary
 StringgetClassName()
     Returns the name of the most specific remote interface implemented by remote object.
 StringgetHashModifier()
     Returns hash modifier for this reference.
 shortgetObjectID()
     Returns object identifier for this reference.
public  Objectinvoke(String method, Object[] params)
     Invokes a remote method.

A remote method invocation consists of three steps:

  1. Marshall the representation for the method and parameters.

  2. Communicate the method invocation to the host and unmarshall the return value or exception returned.

  3. Return the result of the method invocation to the caller.

The remote method invoked on the card can throw an exception to signal that an unexpected condition has been detected.

If the exception thrown on the card is an exception defined in the Java Card 2.2 API, then the same exception is thrown to the stub method.

public  booleanremoteEquals(RemoteRef obj)
     Compares two remote references.
public  intremoteHashCode()
     Returns a hashcode for a remote object.


Constructor Detail
Reference
Reference(Protocol connection, short objectID, String hashModifier, String className)(Code)
Creates new remote reference object.
Parameters:
  connection - Remote reference uses this connection forcard communication.
Parameters:
  objectID - Remote object identifier.
Parameters:
  hashModifier - Anticollision string for remote objectin UTF-8 representation.
Parameters:
  className - the name of the most specific remote interfaceimplemented by remote object.




Method Detail
getClassName
String getClassName()(Code)
Returns the name of the most specific remote interface implemented by remote object. the name of interface



getHashModifier
String getHashModifier()(Code)
Returns hash modifier for this reference. hash modifier



getObjectID
short getObjectID()(Code)
Returns object identifier for this reference. object identifier



invoke
public Object invoke(String method, Object[] params) throws Exception(Code)
Invokes a remote method.

A remote method invocation consists of three steps:

  1. Marshall the representation for the method and parameters.

  2. Communicate the method invocation to the host and unmarshall the return value or exception returned.

  3. Return the result of the method invocation to the caller.

The remote method invoked on the card can throw an exception to signal that an unexpected condition has been detected.

If the exception thrown on the card is an exception defined in the Java Card 2.2 API, then the same exception is thrown to the stub method. The client can access the reason code associated with Java Card-specific exceptions using the standard getReason() method.

If the exception thrown on the card is a subclass of an exception defined in the Java Card 2.2 API, then the closest exception defined in the API (along with the reason code, if applicable) is thrown to the stub method. The detail message string of the exception object may indicate that exception subclass was thrown on the card.

Apart from the exceptions thrown by the remote method itself, errors during communication, marshalling, protocol handling, unmarshalling, stub object instantiation, and so on, related to the JCRMI method invocation, results in a RemoteException being thrown to the stub method.
Parameters:
  method - simple (not fully qualified) name of the methodfollowed by the method descriptor. Representation of amethod descriptor is the same as that described in TheJava Virtual Machine Specification (§ 4.3.3)
Parameters:
  params - the parameter list result of remote method invocation
exception:
  java.lang.Exception - if any exception occurs duringthe remote method invocation




remoteEquals
public boolean remoteEquals(RemoteRef obj)(Code)
Compares two remote references. Two remote references are equal if they refer to the same remote object.
Parameters:
  obj - - the Object to compare with true if these Objects are equal; false otherwise



remoteHashCode
public int remoteHashCode()(Code)
Returns a hashcode for a remote object. Two remote object stubs that refer to the same remote object will have the same hash code. the remote object hashcode



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.