Java Doc for EditHandler.java in  » 6.0-JDK-Modules » j2me » sim » toolkit » 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 » sim.toolkit 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   sim.toolkit.ViewHandler
      sim.toolkit.EditHandler

All known Subclasses:   sim.toolkit.ProactiveHandler,  sim.toolkit.EnvelopeResponseHandler,
EditHandler
abstract public class EditHandler extends ViewHandler (Code)
This class is the basic class for the construction of a list of simple TLV elements. This class is able to handle Simple TLV with a value field no longer than 255 bytes.
version:
   8.3.0
See Also:   ViewHandler
See Also:   ProactiveHandler
See Also:   EnvelopeResponseHandler
See Also:   ToolkitException



Constructor Summary
 EditHandler()
     Default constructor.
 EditHandler(byte[] buffer, short offset, short length)
     Builds a new EditHandler object.

Method Summary
public  voidappendArray(byte[] buffer, short offset, short length)
     Appends a buffer into the EditHandler buffer. A successful append does not modify the TLV selected. The TLV list structure of the handler should be maintained by the applet in the appended array (e.g.
public  voidappendTLV(byte tag, byte[] value, short valueOffset, short valueLength)
     Appends a TLV element to the current TLV list (byte array format).
public  voidappendTLV(byte tag, byte value)
     Appends a TLV element to the current TLV list (1-byte element).
public  voidappendTLV(byte tag, byte value1, byte value2)
     Appends a TLV element to the current TLV list (2-byte element) This method is useful to add double byte elements as Device Identities, Duration or Response Length.
public  voidappendTLV(byte tag, byte value1, byte[] value2, short value2Offset, short value2Length)
     Appends a TLV element to the current TLV list (1 byte and a byte array format).
public  voidclear()
     Clears the TLV list of an EditHandler and resets the current TLV selected.


Constructor Detail
EditHandler
EditHandler()(Code)
Default constructor.



EditHandler
EditHandler(byte[] buffer, short offset, short length) throws NullPointerException, ArrayIndexOutOfBoundsException(Code)
Builds a new EditHandler object.
Parameters:
  buffer - the buffer containg the TLV list
Parameters:
  offset - the position of the TLV list
Parameters:
  length - the length of the TLV list
exception:
  NullPointerException - if buffer is null
exception:
  ArrayIndexOutOfBoundsException - if offset or length or both would cause access outside array bounds




Method Detail
appendArray
public void appendArray(byte[] buffer, short offset, short length) throws NullPointerException, ArrayIndexOutOfBoundsException, ToolkitException(Code)
Appends a buffer into the EditHandler buffer. A successful append does not modify the TLV selected. The TLV list structure of the handler should be maintained by the applet in the appended array (e.g. the length of the TLV element should be coded according to ISO 7816-6), if the TLV manipulation methods are to be used afterwards with the handler.

Notes:

  • If offset or length parameter is negative an ArrayIndexOutOfBoundsException exception is thrown and no append is performed.
  • If offset+length is greater than buffer.length, the length of the buffer array an ArrayIndexOutOfBoundsException exception is thrown and no append is performed.

Parameters:
  buffer - the buffer containing data for copy
Parameters:
  offset - the offset in the buffer
Parameters:
  length - the value length of the buffer
exception:
  NullPointerException - if buffer is null
exception:
  ArrayIndexOutOfBoundsException - if append would cause access of data outside array bounds
exception:
  ToolkitException - with the following reason codes:
  • HANDLER_OVERFLOW if the EditHandler buffer is to small to append the requested data
  • HANDLER_NOT_AVAILABLE if the handler is busy



appendTLV
public void appendTLV(byte tag, byte[] value, short valueOffset, short valueLength) throws NullPointerException, ArrayIndexOutOfBoundsException, ToolkitException(Code)
Appends a TLV element to the current TLV list (byte array format). A successful append does not modify the TLV selected.

Notes:

  • If valueOffset or valueLength parameter is negative an ArrayIndexOutOfBoundsException exception is thrown and no append is performed.
  • If valueOffset+valueLength is greater than value.length, the length of the value array an ArrayIndexOutOfBoundsException exception is thrown and no append is performed.

Parameters:
  tag - the tag of the TLV to append, including the ComprehensionRequired flag
Parameters:
  value - the buffer containing the TLV value
Parameters:
  valueOffset - the offset of the TLV value in the buffer
Parameters:
  valueLength - the value length of the TLV to append
exception:
  NullPointerException - if value is null
exception:
  ArrayIndexOutOfBoundsException - if append would cause access of data outside array bounds
exception:
  ToolkitException - with the following reason codes:
  • HANDLER_OVERFLOW if the EditHandler buffer is to small to append the requested data
  • HANDLER_NOT_AVAILABLE if the handler is busy
  • BAD_INPUT_PARAMETER if valueLength is greater than 255



appendTLV
public void appendTLV(byte tag, byte value) throws ToolkitException(Code)
Appends a TLV element to the current TLV list (1-byte element). This method is useful to add single byte elements as Item Identifier or Tone. A successful append does not modify the TLV selected.
Parameters:
  tag - the tag of the TLV to append, including the Comprehension Required flag
Parameters:
  value - the TLV value on 1 byte
exception:
  ToolkitException - with the following reason codes:
  • HANDLER_OVERFLOW if the EditHandler buffer is to small to append the requested data
  • HANDLER_NOT_AVAILABLE if the handler is busy



appendTLV
public void appendTLV(byte tag, byte value1, byte value2) throws ToolkitException(Code)
Appends a TLV element to the current TLV list (2-byte element) This method is useful to add double byte elements as Device Identities, Duration or Response Length. A successful append does not modify the TLV selected.
Parameters:
  tag - the tag of the TLV to append, including the Comprehension Required flag
Parameters:
  value1 - the 1st byte (msb) of the TLV value
Parameters:
  value2 - the 2nd byte (lsb) of the TLV value
exception:
  ToolkitException - with the following reason codes:
  • HANDLER_OVERFLOW if the EditHandler buffer is to small to append the requested data
  • HANDLER_NOT_AVAILABLE if the handler is busy



appendTLV
public void appendTLV(byte tag, byte value1, byte[] value2, short value2Offset, short value2Length) throws NullPointerException, ArrayIndexOutOfBoundsException, ToolkitException(Code)
Appends a TLV element to the current TLV list (1 byte and a byte array format). A successful append does not modify the TLV selected.

Notes:

  • If value2Offset or value2Length parameter is negative an ArrayIndexOutOfBoundsException exception is thrown and no append is performed.
  • If value2Offset+value2Length is greater than value2.length, the length of the value2 array an ArrayIndexOutOfBoundsException exception is thrown and no append is performed.

Parameters:
  tag - the tag of the TLV to append, including the Comprehension Required flag
Parameters:
  value1 - the first byte in the value field
Parameters:
  value2 - the buffer containing the rest of the TLV field
Parameters:
  value2Offset - the offset of the rest of the TLV field in the buffer
Parameters:
  value2Length - the value length of the rest of the TLVfield to append
exception:
  NullPointerException - if value2 is null
exception:
  ArrayIndexOutOfBoundsException - if append would cause access of data outside array bounds.
exception:
  ToolkitException - with the following reason codes:
  • HANDLER_OVERFLOW if the EditHandler buffer is to small to append the requested data
  • HANDLER_NOT_AVAILABLE if the handler is busy
  • BAD_INPUT_PARAMETER if value2Length is greater than 254



clear
public void clear() throws ToolkitException(Code)
Clears the TLV list of an EditHandler and resets the current TLV selected.
exception:
  ToolkitException - with the following reason codes:
  • HANDLER_NOT_AVAILABLE if the handler is busy



Fields inherited from sim.toolkit.ViewHandler
final protected static byte BER_TLV_TAG_OFFSET(Code)(Java Doc)
final protected static byte OFFSET_LC(Code)(Java Doc)
public static AccessSAT SATAccessor(Code)(Java Doc)
final protected static byte TPUD_OFFSET(Code)(Java Doc)
public static ToolkitInterface currentTI(Code)(Java Doc)
short currentTLVOffset(Code)(Java Doc)
short firstTLVOffset(Code)(Java Doc)

Methods inherited from sim.toolkit.ViewHandler
public byte compareValue(short valueOffset, byte[] compareBuffer, short compareOffset, short compareLength) throws NullPointerException, ArrayIndexOutOfBoundsException, ToolkitException(Code)(Java Doc)
public short copy(byte[] dstBuffer, short dstOffset, short dstLength) throws NullPointerException, ArrayIndexOutOfBoundsException, ToolkitException(Code)(Java Doc)
public short copyValue(short valueOffset, byte[] dstBuffer, short dstOffset, short dstLength) throws NullPointerException, ArrayIndexOutOfBoundsException, ToolkitException(Code)(Java Doc)
public byte findAndCompareValue(byte tag, byte[] compareBuffer, short compareOffset) throws NullPointerException, ArrayIndexOutOfBoundsException, ToolkitException(Code)(Java Doc)
public byte findAndCompareValue(byte tag, byte occurrence, short valueOffset, byte[] compareBuffer, short compareOffset, short compareLength) throws NullPointerException, ArrayIndexOutOfBoundsException, ToolkitException(Code)(Java Doc)
public short findAndCopyValue(byte tag, byte[] dstBuffer, short dstOffset) throws NullPointerException, ArrayIndexOutOfBoundsException, ToolkitException(Code)(Java Doc)
public short findAndCopyValue(byte tag, byte occurrence, short valueOffset, byte[] dstBuffer, short dstOffset, short dstLength) throws NullPointerException, ArrayIndexOutOfBoundsException, ToolkitException(Code)(Java Doc)
public byte findTLV(byte tag, byte occurrence) throws ToolkitException(Code)(Java Doc)
public static byte[] getAPDUBuffer(byte[] buffer)(Code)(Java Doc)
public static byte[] getAPDUBuffer()(Code)(Java Doc)
protected short getLastTLVOffset(byte[] buffer, short Lc)(Code)(Java Doc)
public short getLength() throws ToolkitException(Code)(Java Doc)
protected short getTLVOffset(byte[] buffer, byte tag, short Lc, short occurrence)(Code)(Java Doc)
public byte getValueByte(short valueOffset) throws ToolkitException(Code)(Java Doc)
public short getValueLength() throws ToolkitException(Code)(Java Doc)
public static void setAPDUBuffer(byte[] buffer, short length)(Code)(Java Doc)
public static void setAPDUBuffer(short length)(Code)(Java Doc)
public static void setOutBufferData(short length)(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(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.