com.jniwrapper
Class UnicodeChar

java.lang.Object
  extended by com.jniwrapper.Parameter
      extended by com.jniwrapper.DelegatingParameter
          extended by com.jniwrapper.UnicodeChar

public class UnicodeChar
extends DelegatingParameter

Represents a Unicode character (wchar_t) for Unix platform.


Field Summary
 
Fields inherited from class com.jniwrapper.Parameter
LICENSE_TYPE, V
 
Constructor Summary
UnicodeChar()
          Constructs a new wchar_t parameter.
UnicodeChar(char c)
          Constructs a new wchar_t parameter.
UnicodeChar(UnicodeChar t)
          Constructs a new wchar_t parameter.
 
Method Summary
 java.lang.Object clone()
           
 int getLength()
          Returns the length of the parameter in memory.
 char getValue()
          Returns a value of this parameters as Unicode character.
 void setValue(char value)
          Sets this parameter to the given Unicode character value.
 Char toChar()
           
 java.lang.String toString()
           
 
Methods inherited from class com.jniwrapper.DelegatingParameter
acceptIOPerformer, getDataBuffer, getDataBufferOffset, getDebugInfo, getValueObject, pop, push, read, setDataBuffer, setValueObject, write
 
Methods inherited from class com.jniwrapper.Parameter
asReturnValue, dataBufferAssigned, equals, getAlignedLength, getAlignmentRequirement, hashCode, indent, read, read, toByteArray, write
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UnicodeChar

public UnicodeChar()
Constructs a new wchar_t parameter.


UnicodeChar

public UnicodeChar(char c)
Constructs a new wchar_t parameter.

Parameters:
c - the initial value.

UnicodeChar

public UnicodeChar(UnicodeChar t)
Constructs a new wchar_t parameter.

Parameters:
t - a parameter to get the initial value from.
Method Detail

getLength

public int getLength()
Description copied from class: Parameter
Returns the length of the parameter in memory. This method is similar to C sizeof() operator.

Overrides:
getLength in class DelegatingParameter

clone

public java.lang.Object clone()
Specified by:
clone in class Parameter

getValue

public char getValue()
Returns a value of this parameters as Unicode character.


setValue

public void setValue(char value)
Sets this parameter to the given Unicode character value.


toString

public java.lang.String toString()
Overrides:
toString in class DelegatingParameter

toChar

public Char toChar()