|
Servertec Jenie 1.0.1 09/04/2005 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectstec.jenie.NativeObject
stec.jenie.WideString
public class WideString
Represents a native wide string.
Uses 16 bit characters.
Wide strings can only be passed or returned by functions and callbacks as a pointer to the wide string.
AnsiString| Constructor Summary | |
|---|---|
WideString()
Constructs a new wide string of default size. |
|
WideString(char[] value)
Constructs a new wide string from the specified array of characters. |
|
WideString(char[] value,
int offset,
int length)
Constructs a new wide string from the specified array of characters. |
|
WideString(int size)
Constructs a new wide string of specified size. |
|
WideString(Pointer pointer)
Constructs a new wide string from the specified pointer to an wide string. |
|
WideString(Pointer pointer,
int size)
Constructs a new wide string from the specified pointer to an wide string. |
|
WideString(java.lang.String value)
Constructs a new wide string from the specified string. |
|
WideString(WideString value)
Constructs a new wide string from the specified wide string. |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
Returns a clone of this wide string. |
int |
compareTo(java.lang.Object object)
Compares this wide string to the specified wide string. |
int |
compareTo(WideString string)
Compares this wide string to the specified wide string. |
int |
compareToIgnoreCase(WideString string)
Compares this wide string to the specified wide string. |
boolean |
equals(java.lang.Object object)
Returns whether this wide string equals the specified wide string. |
boolean |
equalsIgnoreCase(WideString string)
Returns whether this wide string equals ignoring case the specified wide string. |
java.lang.String |
getValue()
Returns a String representation of this wide string. |
int |
hashCode()
Returns the hash code of this wide string. |
int |
length()
Returns the length in characters of this wide string. |
void |
setValue(char[] value)
Sets the value of this wide string to the specified array of characters. |
void |
setValue(char[] value,
int offset,
int length)
Sets the value of this wide string to the specified array of characters. |
void |
setValue(Pointer pointer)
Sets the value of this wide string to the wide string referenced by the specified pointer to a wide string. |
void |
setValue(Pointer pointer,
int size)
Sets the value of this wide string to the wide string referenced by the specified pointer to a wide string. |
void |
setValue(java.lang.String value)
Sets the value of this wide string to the specified String. |
void |
setValue(WideString value)
Sets the value of this wide string to the specified wide string. |
java.lang.String |
toString()
Returns a String representation of this wide string. |
| Methods inherited from class stec.jenie.NativeObject |
|---|
getAlignment, getNativeAddress, getNativeBuffer, getNativeBufferHandle, setNativeBuffer, setNativeBuffer, setNativeBuffer, size |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public WideString()
throws java.lang.OutOfMemoryError
Constructs a native buffer of 256 bytes in length for wide string.
java.lang.OutOfMemoryError - if there is not enough free memory.
public WideString(int size)
throws java.lang.OutOfMemoryError
Constructs a native buffer of (size + 1) * 2 bytes in length for wide string.
size - the size in characters of the wide string.
java.lang.OutOfMemoryError - if there is not enough free memory.
public WideString(java.lang.String value)
throws java.lang.OutOfMemoryError
Constructs a native buffer of (string length + 1) * 2 bytes in length for wide string.
value - the string to use.
java.lang.OutOfMemoryError - if there is not enough free memory.
public WideString(char[] value)
throws java.lang.OutOfMemoryError
Constructs a native buffer of (character array length + 1) * 2 bytes in length for wide string.
value - the array of characters to use.
java.lang.OutOfMemoryError - if there is not enough free memory.
public WideString(char[] value,
int offset,
int length)
throws java.lang.OutOfMemoryError
Constructs a native buffer of (length + 1) * 2 bytes in length for wide string.
value - the array of characters to use.offset - the starting offset.length - the number of characters.
java.lang.OutOfMemoryError - if there is not enough free memory.
public WideString(WideString value)
throws java.lang.OutOfMemoryError
Constructs a native buffer of size of the native buffer of specified wide string bytes in length for wide string.
value - the wide string to use.
java.lang.OutOfMemoryError - if there is not enough free memory.public WideString(Pointer pointer)
Sets the size of the native buffer to -1.
pointer - the pointer to the wide string.
public WideString(Pointer pointer,
int size)
Sets the native buffer size to the specified (size + 1) * 2.
pointer - the pointer to the wide string.size - the native buffer in characters.| Method Detail |
|---|
public int length()
public java.lang.String getValue()
public void setValue(java.lang.String value)
throws java.lang.IndexOutOfBoundsException
value - the String to use.
java.lang.IndexOutOfBoundsException - if the length of the specified String is larger than the size of the native buffer of this wide string.
public void setValue(char[] value)
throws java.lang.IndexOutOfBoundsException
value - the array of characters to use.
java.lang.IndexOutOfBoundsException - if the length of the specified array of characters is larger than the size of the native buffer of this wide string.
public void setValue(char[] value,
int offset,
int length)
throws java.lang.IndexOutOfBoundsException
value - the array of characters to use.offset - the starting offset.length - the number of bytes to use.
java.lang.IndexOutOfBoundsException - if the length of the specified array of characters is larger than the size of the native buffer of this wide string.
public void setValue(WideString value)
throws java.lang.IndexOutOfBoundsException
value - the wide string to use.
java.lang.IndexOutOfBoundsException - if the length of the specified wide string is larger than the size of the native buffer of this wide string.public void setValue(Pointer pointer)
Sets the size of the native buffer to -1.
pointer - the pointer to an wide string.
public void setValue(Pointer pointer,
int size)
Sets the native buffer size to the specified (size + 1) * 2.
pointer - the pointer to an wide string.size - the size in characters of the referenced wide string.public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object object)
equals in class NativeObjectobject - the wide string to compare against.
public boolean equalsIgnoreCase(WideString string)
string - the wide string to compare against.
public int compareTo(java.lang.Object object)
throws java.lang.ClassCastException
object - the wide string to compare against.
java.lang.ClassCastException - if the specified object is not an wide string.public int compareTo(WideString string)
string - the wide string to compare against.
public int compareToIgnoreCase(WideString string)
throws java.lang.ClassCastException
object - the wide string to compare against.
java.lang.ClassCastException - if the specified object is not an wide string.
public java.lang.Object clone()
throws java.lang.OutOfMemoryError
clone in class NativeObjectjava.lang.OutOfMemoryError - if there is not enough free memory.public int hashCode()
hashCode in class NativeObject
|
Servertec Jenie 1.0.1 09/04/2005 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright © 2004-2005 Servertec. All rights reserved.