public class ExternalStringPointer extends Pointer.Void
LICENSE_TYPE, V| Constructor and Description |
|---|
ExternalStringPointer()
Creates a null string pointer and sets its character encoding to
CharacterEncoding.Unicode. |
ExternalStringPointer(boolean unicode)
Deprecated.
use
ExternalStringPointer(CharacterEncoding) constructor instead. |
ExternalStringPointer(CharacterEncoding encoding)
Constructs a null string pointer with specified encoding.
|
ExternalStringPointer(long handle)
Creates a string pointer by the specified address.
|
ExternalStringPointer(long handle,
boolean unicode)
Deprecated.
use
ExternalStringPointer(long, CharacterEncoding) constructor instead |
ExternalStringPointer(long handle,
CharacterEncoding encoding)
Creates a string pointer by the specified address and character encoding.
|
ExternalStringPointer(Pointer.Void value)
Creates a string pointer by the specified address with ANSI character encoding.
|
ExternalStringPointer(Pointer.Void handle,
CharacterEncoding encoding)
Creates a string pointer by the specified address and character encoding.
|
| Modifier and Type | Method and Description |
|---|---|
CharacterEncoding |
getEncoding()
Returns the specified encoding of this string pointer.
|
boolean |
isUnicodeString()
Deprecated.
use
getEncoding() method instead |
java.lang.String |
readString()
Reads a string from this pointer depending on the specified character encoding.
|
void |
setEncoding(CharacterEncoding encoding)
Specifies encoding of this string pointer.
|
asFunction, asFunction, asTypedPointer, castTo, castTo, clone, equals, getDebugInfo, getLength, getValue, hashCode, isNull, read, setValue, toString, writeacceptIOPerformer, asReturnValue, dataBufferAssigned, getAlignedLength, getAlignmentRequirement, getDataBuffer, getDataBufferOffset, indent, pop, push, read, read, setDataBuffer, toByteArray, writepublic ExternalStringPointer()
CharacterEncoding.Unicode.public ExternalStringPointer(boolean unicode)
ExternalStringPointer(CharacterEncoding) constructor instead.unicode - true specifies that the pointer refers to a unicode string; false to an ANSI stringpublic ExternalStringPointer(CharacterEncoding encoding)
encoding - specifies the character encoding of a stringpublic ExternalStringPointer(long handle)
handle - specifies the address of a stringpublic ExternalStringPointer(long handle,
boolean unicode)
ExternalStringPointer(long, CharacterEncoding) constructor insteadhandle - specifies the address of a stringunicode - true if the pointer refers to a unicode string; false to an ANSI onepublic ExternalStringPointer(long handle,
CharacterEncoding encoding)
handle - specifies the string addressencoding - specifies character encoding of a stringpublic ExternalStringPointer(Pointer.Void handle, CharacterEncoding encoding)
handle - specifies the string addressencoding - specifies character encoding of a stringpublic ExternalStringPointer(Pointer.Void value)
value - specifies the string addresspublic java.lang.String readString()
public boolean isUnicodeString()
getEncoding() method insteadpublic final void setEncoding(CharacterEncoding encoding)
encoding - character encodingpublic final CharacterEncoding getEncoding()