com.jniwrapper
Class AnsiString

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

public class AnsiString
extends ZeroTerminatedString

Represents a zero-terminated string of 8-bit (ANSI) character declared in C as (char *).

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


Constructor Summary
AnsiString()
          Constructs string with maximum length of 256 characters
AnsiString(AnsiString t)
          Constructs a copy of specified AnsiString object
AnsiString(int maxLen)
          Constructs string with specified maximum length
AnsiString(java.lang.String s)
          Constructs string with specified value.
AnsiString(java.lang.String s, int maxLen)
          Constructs string with specified value and maximum length
 
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

AnsiString

public AnsiString()
Constructs string with maximum length of 256 characters


AnsiString

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


AnsiString

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


AnsiString

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


AnsiString

public AnsiString(AnsiString 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