com.jniwrapper
Class WideString

java.lang.Object
  |
  +--com.jniwrapper.Parameter
        |
        +--com.jniwrapper.ZeroTerminatedString
              |
              +--com.jniwrapper.WideString

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
 java.lang.Object clone()
           
 java.lang.String getValue()
          Returns string value
 void setValue(java.lang.String value)
          Sets string value
 
Methods inherited from class com.jniwrapper.ZeroTerminatedString
asReturnValue, equals, getAlignedLength, getCharLength, getLength, getMaxLength, pop, push, read, toString, write
 
Methods inherited from class com.jniwrapper.Parameter
acceptIOPerformer, getBuffer, getOffset, indent, read, setBuffer, 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

getValue

public final java.lang.String getValue()
Description copied from class: ZeroTerminatedString
Returns string value

Specified by:
getValue in class ZeroTerminatedString

setValue

public final void setValue(java.lang.String value)
Description copied from class: ZeroTerminatedString
Sets string value

Specified by:
setValue in class ZeroTerminatedString

clone

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