com.jniwrapper
Class WideChar

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

public class WideChar
extends DelegatingParameter

Represents a Unicode character (wchar_t)


Field Summary
 
Fields inherited from class com.jniwrapper.Parameter
LICENSE_TYPE, V
 
Constructor Summary
WideChar()
          Constructs a new wchar_t parameter.
WideChar(char c)
          Constructs a new wchar_t parameter.
WideChar(WideChar 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

WideChar

public WideChar()
Constructs a new wchar_t parameter.


WideChar

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

Parameters:
c - the initial value.

WideChar

public WideChar(WideChar 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()