|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jniwrapper.ExternalStringArray
public class ExternalStringArray
This class allows reading external memory block that contains a sequence of null-terminated strings. The read sequence is represented as an array of strings.
Constructor Summary | |
---|---|
ExternalStringArray(Pointer.Void handle)
Creates an array of strings from the memory block pointed by the handle . |
|
ExternalStringArray(Pointer.Void handle,
CharacterEncoding characterEncoding)
Creates an array of strings from the memory block pointed by the handle . |
Method Summary | |
---|---|
int |
countElements()
Gets the number of elements in the array. |
java.lang.String |
getElement(int i)
Gets the string at the specified position in the array. |
java.lang.String[] |
getStrings()
Gets the array of strings. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ExternalStringArray(Pointer.Void handle)
handle
.
public ExternalStringArray(Pointer.Void handle, CharacterEncoding characterEncoding)
handle
.
handle
- is the pointer to the beginning of the memory block.Method Detail |
---|
public java.lang.String[] getStrings()
public java.lang.String getElement(int i)
i
- specifies the position of getting string in the array.
public int countElements()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |