Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

net::threebit::jvr::DV_DIGIT Class Reference

Inheritance diagram for net::threebit::jvr::DV_DIGIT:

net::threebit::jvr::JvrJni net::threebit::jvr::JVRBaseClass List of all members.

Public Member Functions

 DV_DIGIT () throws JVRException
String getDigits () throws JVRException
String toString ()
void finalize ()

Static Public Member Functions

native int allocateBuffer () throws JVRException
native void releaseBuffer (int offset) throws JVRException

Static Package Functions

 [static initializer]

Static Private Member Functions

native String getDigits (int offset) throws JVRException

Private Attributes

int offset = -1

Static Private Attributes

final Object lock = new Object()

Detailed Description

Java representation of the DV_DIGIT struct.

Definition at line 26 of file DV_DIGIT.java.


Constructor & Destructor Documentation

net::threebit::jvr::DV_DIGIT::DV_DIGIT  )  throws JVRException [inline]
 

Calls allocateBuffer().

Definition at line 44 of file DV_DIGIT.java.

References allocateBuffer(), lock, and offset.


Member Function Documentation

net::threebit::jvr::DV_DIGIT::[static initializer]  )  [inline, static, package]
 

Reimplemented from net::threebit::jvr::JvrJni.

native int net::threebit::jvr::DV_DIGIT::allocateBuffer  )  throws JVRException [static]
 

Allocates a native-context DV_DIGIT struct for this instance of DV_DIGIT.

Referenced by DV_DIGIT().

void net::threebit::jvr::DV_DIGIT::finalize  )  [inline]
 

Ensures that the DV_DIGIT structure allocated to this instance is released.

Definition at line 94 of file DV_DIGIT.java.

References lock, offset, and releaseBuffer().

native String net::threebit::jvr::DV_DIGIT::getDigits int  offset  )  throws JVRException [static, private]
 

Private, native version of getDigits instance method.

String net::threebit::jvr::DV_DIGIT::getDigits  )  throws JVRException [inline]
 

Accesses the native-context DV_DIGIT structure and converts the collected digits to a string.

Definition at line 64 of file DV_DIGIT.java.

References offset.

Referenced by toString().

native void net::threebit::jvr::DV_DIGIT::releaseBuffer int  offset  )  throws JVRException [static]
 

Releases the native-context DV_DIGIT structure.

Referenced by finalize().

String net::threebit::jvr::DV_DIGIT::toString  )  [inline]
 

Returns the digits collected into this DV_DIGIT instance. Example:

DV_DIGIT digits; // ... previous calls to dx.getdig() logger.info("The caller typed in '"+digits+"'");

Definition at line 82 of file DV_DIGIT.java.

References getDigits(), and offset.


Member Data Documentation

final Object net::threebit::jvr::DV_DIGIT::lock = new Object() [static, private]
 

A private locking object. By using lock as a synchronization point in the Java context, we negate the need to perform thread-safe locking in the JNI context.

Definition at line 34 of file DV_DIGIT.java.

Referenced by DV_DIGIT(), and finalize().

int net::threebit::jvr::DV_DIGIT::offset = -1 [private]
 

Offset of the DV_DIGIT struct buffer allocated to this instance.

Definition at line 39 of file DV_DIGIT.java.

Referenced by DV_DIGIT(), finalize(), getDigits(), and toString().


The documentation for this class was generated from the following file:
Generated on Sat Jul 16 03:47:42 2005 for JVR by doxygen 1.3.5