const char* or const wchar_t*) for use when
converting a Java String into a native memory function argument.
| Modifier and Type | Class and Description |
|---|---|
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private String | |
| private Pointer | |
| pack-priv static final String |
| Access | Constructor and Description |
|---|---|
| public | |
| public | NativeString(String
value to write to native memory string, boolean whether to store the String as wide)wchar_tCreate a native string as a NUL-terminated array of |
| public | |
| public | NativeString(String string, String encoding)
Create a native string (NUL-terminated array of |
| Modifier and Type | Method and Description |
|---|---|
| public char | charAt(int
the index of the index)char value to be returnedImplements java. char value at the specified index.
|
| public int | compareTo(Object
the object to be compared. other)Implements java. |
| public boolean | equals(Object
the reference object with which to compare. other)Overrides java. |
| public Pointer | |
| public int | |
| public int | |
| public CharSequence | subSequence(int
the start index, inclusive start, int the end index, exclusive end)Implements java. CharSequence that is a subsequence of this sequence.
|
| public String | toString()
Overrides java. Implements java. |
| encoding | back to summary |
|---|---|
| private String encoding | |
| pointer | back to summary |
|---|---|
| private Pointer pointer | |
| WIDE_STRING | back to summary |
|---|---|
| pack-priv static final String WIDE_STRING | |
| NativeString | back to summary |
|---|---|
| public NativeString(String string) Create a native string (NUL-terminated array of
Uses the encoding returned by | |
| NativeString | back to summary |
|---|---|
| public NativeString(String string, boolean wide) Create a native string as a NUL-terminated array of
If not
| |
| NativeString | back to summary |
|---|---|
| public NativeString(WString string) Create a native string as a NUL-terminated array of
| |
| NativeString | back to summary |
|---|---|
| public NativeString(String string, String encoding) Create a native string (NUL-terminated array of | |
| charAt | back to summary |
|---|---|
| public char charAt(int index) Implements java. Doc from java. Returns the If the
| |
| compareTo | back to summary |
|---|---|
| public int compareTo(Object other) Implements java. Doc from java. Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object. The implementor must ensure The implementor must also ensure that the relation is transitive:
Finally, the implementor must ensure that | |
| equals | back to summary |
|---|---|
| public boolean equals(Object other) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getPointer | back to summary |
|---|---|
| public Pointer getPointer() | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| length | back to summary |
|---|---|
| public int length() Implements java. Doc from java. Returns the length of this character sequence. The length is the number
of 16-bit
| |
| subSequence | back to summary |
|---|---|
| public CharSequence subSequence(int start, int end) Implements java. Doc from java. Returns a
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Implements java. Doc from java. Returns a string containing the characters in this sequence in the same order as this sequence. The length of the string will be the length of this sequence. | |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String |
| StringMemory | back to summary |
|---|---|
| public StringMemory(long size) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides com. Doc from java. Returns a string representation of the object. | |