com.jniwrapper
Class UnicodeString

java.lang.Object
  extended by com.jniwrapper.Parameter
      extended by com.jniwrapper.ZeroTerminatedString
          extended by com.jniwrapper.UnicodeString
All Implemented Interfaces:
AlignmentAwareParameter, StringParameter

public class UnicodeString
extends ZeroTerminatedString

Represents a Unicode string (wchar_t *) for Unix platform.


Field Summary
 
Fields inherited from class com.jniwrapper.Parameter
LICENSE_TYPE, V
 
Constructor Summary
UnicodeString()
          Constructs a string with the maximum length of 256 characters.
UnicodeString(int maxLen)
          Constructs a string with a specified maximum length.
UnicodeString(java.lang.String s)
          Constructs a string with a specified value.
UnicodeString(java.lang.String s, int maxLen)
          Constructs a string with a specified value and maximum length.
UnicodeString(UnicodeString t)
          Constructs a copy of a specified AnsiString object.
 
Method Summary
protected  java.lang.String bytesToString(byte[] bytes)
           
 java.lang.Object clone()
           
 int getAlignmentRequirement()
           
protected  int getStrLen(DataBuffer dataBuffer, int startOffset)
           
protected  byte[] stringToBytes(java.lang.String value)
           
 
Methods inherited from class com.jniwrapper.ZeroTerminatedString
asReturnValue, equals, getAlignedLength, getDebugInfo, getFirstMemberSize, getLength, getMaxLength, getValue, hashCode, read, setValue, toString, write
 
Methods inherited from class com.jniwrapper.Parameter
acceptIOPerformer, dataBufferAssigned, getDataBuffer, getDataBufferOffset, indent, pop, push, read, read, setDataBuffer, toByteArray, write
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UnicodeString

public UnicodeString()
Constructs a string with the maximum length of 256 characters.


UnicodeString

public UnicodeString(int maxLen)
Constructs a string with a specified maximum length.


UnicodeString

public UnicodeString(java.lang.String s)
Constructs a string with a specified value. The maximum length of the string equals the length of a specified value (including terminating zero).


UnicodeString

public UnicodeString(java.lang.String s,
                     int maxLen)
Constructs a string with a specified value and maximum length.


UnicodeString

public UnicodeString(UnicodeString t)
Constructs a copy of a specified AnsiString object.

Method Detail

bytesToString

protected java.lang.String bytesToString(byte[] bytes)
Specified by:
bytesToString in class ZeroTerminatedString

stringToBytes

protected byte[] stringToBytes(java.lang.String value)
Specified by:
stringToBytes in class ZeroTerminatedString

clone

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

getStrLen

protected int getStrLen(DataBuffer dataBuffer,
                        int startOffset)
Specified by:
getStrLen in class ZeroTerminatedString

getAlignmentRequirement

public int getAlignmentRequirement()
Overrides:
getAlignmentRequirement in class Parameter
Returns:
required alignment within a structure or an array