|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.threebit.jvr.JVRBaseClass
net.threebit.jvr.JvrJni
net.threebit.jvr.DV_DIGIT
Java representation of the DV_DIGIT struct.
| Field Summary | |
private static java.lang.Object |
lock
A private locking object. |
private int |
offset
Offset of the DV_DIGIT struct buffer allocated to this instance. |
| Fields inherited from class net.threebit.jvr.JVRBaseClass |
logger |
| Constructor Summary | |
DV_DIGIT()
Calls allocateBuffer(). |
|
| Method Summary | |
static int |
allocateBuffer()
Allocates a native-context DV_DIGIT struct for this instance of DV_DIGIT. |
void |
finalize()
Ensures that the DV_DIGIT structure allocated to this instance is released. |
java.lang.String |
getDigits()
Accesses the native-context DV_DIGIT structure and converts the collected digits to a string. |
private static java.lang.String |
getDigits(int offset)
Private, native version of getDigits instance method. |
static void |
releaseBuffer(int offset)
Releases the native-context DV_DIGIT structure. |
java.lang.String |
toString()
Returns the digits collected into this DV_DIGIT instance. |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
private static final java.lang.Object lock
lock as a synchronization
point in the Java context, we negate the need to perform thread-safe locking
in the JNI context.
private int offset
| Constructor Detail |
public DV_DIGIT()
throws JVRException
allocateBuffer().
| Method Detail |
public static int allocateBuffer()
throws JVRException
JVRException
public static void releaseBuffer(int offset)
throws JVRException
JVRException
public java.lang.String getDigits()
throws JVRException
JVRException
private static java.lang.String getDigits(int offset)
throws JVRException
getDigits instance method.
JVRExceptionpublic java.lang.String toString()
DV_DIGIT digits;
// ... previous calls to dx.getdig()
logger.info("The caller typed in '"+digits+"'");
public void finalize()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||