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


java.lang.Object
   java.lang.Throwable
      java.lang.Exception
         com.sun.io.j2me.apdu.TLP224Message

TLP224Message
class TLP224Message extends Exception (Code)
The TLP224Message class represents the link level message between a CAD (Card Acceptance Device) and a Terminal. All messages exchanged between the CAD and the Terminal are encoded using the TLP224 protocol. TLP224Messages are used internally to maintain context on the server side and to send commands to and from the client.


Field Summary
final static  byteACK
     This field contains the ACK code which is returned to the sender as the first octet of a TLP224 response when a message has been successfully received.
final static  byteEOT
     This field contains the EOT code which is always sent as the last octet of any TLP224 message.
final static  byteISO_INPUT
     This field contains the TLP224 command to send data to the card.
final static  byteISO_OUTPUT
     This field contains the TLP224 command to read data from the card.
final static  byteNACK
     This field contains the NACK code which is returned to the sender as the first octet of a TLP224 response when a transmission error occurs.
final static  bytePOWER_UP
     This field contains the TLP224 command to power up the CAD.
final static  byteSTATUS_CARD_ERROR
     This status code is returned by the reader or ServerCad if SW1 SW2 are not equal to 0x9000.
final static  byteSTATUS_CARD_MISSING
     This status code is returned by the reader or ServerCad if there is no card in the reader.
final static  byteSTATUS_CARD_REMOVED
     This status code is returned by the reader or ServerCad if the card was removed between exchanges.
final static  byteSTATUS_INTERRUPTED_EXCHANGE
     This status code is returned by the reader or ServerCad if the card sends a Procedure Byte which aborts a ISO_IN or ISO_OUT command.
final static  byteSTATUS_MESSAGE_TOO_LONG
     This status code is returned by both the Client and Server CAD's when a received message exceeds the length of the internal buffers.
final static  byteSTATUS_PROTOCOL_ERROR
     This status code is returned by both the Client and Server CAD's when the first byte of a received message is neither an ACK or NACK.
final static  byteSTATUS_SUCCESS
     This status code is returned by both the Client and Server CAD's when a command has been successfully executed.

Constructor Summary
 TLP224Message()
     Construct a new TLP224Message using the default (MAX_MESSAGE_LEN) message size.

Method Summary
 bytecomputeLRC(int length)
     Compute the TLP224 LRC of this object. The TLP224 LRC is the exclusive-or of all the bytes in the message.
Parameters:
  length - The number of bytes to compute the LRC over.
 byte[]getData()
     Retrieves the contents of this TLP224Message. The non-null byte array containing the data to be sent or received.
 intgetLength()
     Retrieves the length of this TLP224Message.
 voidsetLength(int newLen)
     Set the length of the data in this TLP224Message.

Field Detail
ACK
final static byte ACK(Code)
This field contains the ACK code which is returned to the sender as the first octet of a TLP224 response when a message has been successfully received.



EOT
final static byte EOT(Code)
This field contains the EOT code which is always sent as the last octet of any TLP224 message.



ISO_INPUT
final static byte ISO_INPUT(Code)
This field contains the TLP224 command to send data to the card.



ISO_OUTPUT
final static byte ISO_OUTPUT(Code)
This field contains the TLP224 command to read data from the card.



NACK
final static byte NACK(Code)
This field contains the NACK code which is returned to the sender as the first octet of a TLP224 response when a transmission error occurs.



POWER_UP
final static byte POWER_UP(Code)
This field contains the TLP224 command to power up the CAD.



STATUS_CARD_ERROR
final static byte STATUS_CARD_ERROR(Code)
This status code is returned by the reader or ServerCad if SW1 SW2 are not equal to 0x9000.



STATUS_CARD_MISSING
final static byte STATUS_CARD_MISSING(Code)
This status code is returned by the reader or ServerCad if there is no card in the reader.



STATUS_CARD_REMOVED
final static byte STATUS_CARD_REMOVED(Code)
This status code is returned by the reader or ServerCad if the card was removed between exchanges.



STATUS_INTERRUPTED_EXCHANGE
final static byte STATUS_INTERRUPTED_EXCHANGE(Code)
This status code is returned by the reader or ServerCad if the card sends a Procedure Byte which aborts a ISO_IN or ISO_OUT command.



STATUS_MESSAGE_TOO_LONG
final static byte STATUS_MESSAGE_TOO_LONG(Code)
This status code is returned by both the Client and Server CAD's when a received message exceeds the length of the internal buffers.



STATUS_PROTOCOL_ERROR
final static byte STATUS_PROTOCOL_ERROR(Code)
This status code is returned by both the Client and Server CAD's when the first byte of a received message is neither an ACK or NACK.



STATUS_SUCCESS
final static byte STATUS_SUCCESS(Code)
This status code is returned by both the Client and Server CAD's when a command has been successfully executed.




Constructor Detail
TLP224Message
TLP224Message()(Code)
Construct a new TLP224Message using the default (MAX_MESSAGE_LEN) message size.




Method Detail
computeLRC
byte computeLRC(int length)(Code)
Compute the TLP224 LRC of this object. The TLP224 LRC is the exclusive-or of all the bytes in the message.
Parameters:
  length - The number of bytes to compute the LRC over. The computed LRC.



getData
byte[] getData()(Code)
Retrieves the contents of this TLP224Message. The non-null byte array containing the data to be sent or received. Any changesto this byte array also affect the TLP224Message from which it came.



getLength
int getLength()(Code)
Retrieves the length of this TLP224Message. The length in bytes of the internal buffer as previously set by setLength().



setLength
void setLength(int newLen)(Code)
Set the length of the data in this TLP224Message. The length must be less than or equal to the length of the internal buffer.
Parameters:
  newLen - The length to set.
exception:
  IllegalArgumentException - if newLen is greater than the length of the internal buffer.




Methods inherited from java.lang.Throwable
public String getMessage()(Code)(Java Doc)
native public void printStackTrace()(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.