|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.jniwrapper.Parameter
com.jniwrapper.Pointer.Void
com.jniwrapper.ExternalStringPointer
This class is designed for reading externally allocated strings.
| Field Summary |
| Fields inherited from class com.jniwrapper.Parameter |
LICENSE_TYPE, V |
| Constructor Summary | |
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. |
|
| Method Summary | |
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. |
| Methods inherited from class com.jniwrapper.Pointer.Void |
asFunction, asFunction, asTypedPointer, castTo, castTo, clone, equals, getDebugInfo, getLength, getValue, hashCode, isNull, read, setValue, toString, write |
| Methods inherited from class com.jniwrapper.Parameter |
acceptIOPerformer, asReturnValue, dataBufferAssigned, getAlignedLength, getAlignmentRequirement, getDataBuffer, getDataBufferOffset, indent, pop, push, read, read, setDataBuffer, toByteArray, write |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public 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 string
public ExternalStringPointer(long handle,
boolean unicode)
ExternalStringPointer(long, CharacterEncoding) constructor instead
handle - specifies the address of a stringunicode - true if the pointer refers to a unicode string; false to an ANSI one
public ExternalStringPointer(long handle,
CharacterEncoding encoding)
handle - specifies the string addressencoding - specifies character encoding of a string
public 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 address| Method Detail |
public java.lang.String readString()
public boolean isUnicodeString()
getEncoding() method instead
public final void setEncoding(CharacterEncoding encoding)
encoding - character encodingpublic final CharacterEncoding getEncoding()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||