com.jniwrapper
Class WideString

java.lang.Object
  |
  +--com.jniwrapper.Parameter
        |
        +--com.jniwrapper.ZeroTerminatedString
              |
              +--com.jniwrapper.WideString
All Implemented Interfaces:
StringParameter

public class WideString
extends ZeroTerminatedString

Represents Unicode string (wchar_t *) value and type.

NOTE: All string lengths include the terminating zero character unless otherwise noted.


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

Constructor Detail

WideString

public WideString()
Constructs string with maximum length 256 characters


WideString

public WideString(int maxLen)
Constructs string with specified maximum length


WideString

public WideString(java.lang.String s)
Constructs string with specified value. Maximum length of the string equals the length of specified value (including terminating zero).


WideString

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


WideString

public WideString(WideString t)
Constructs a copy of 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