Package com.sun.jna
Class StringArray
- java.lang.Object
- 
- com.sun.jna.Pointer
- 
- com.sun.jna.Memory
- 
- com.sun.jna.StringArray
 
 
 
- 
- All Implemented Interfaces:
- Function.PostCallRead
 
 public class StringArray extends Memory implements Function.PostCallRead Handle native array ofchar*orwchar_t*type by managing allocation/disposal of native strings within an array of pointers. An extra NULL pointer is always added to the end of the native pointer array for convenience.
- 
- 
Constructor SummaryConstructors Constructor Description StringArray(WString[] strings)Create a native array of wide strings.StringArray(java.lang.String[] strings)Create a native array of strings.StringArray(java.lang.String[] strings, boolean wide)Create a native array of strings.StringArray(java.lang.String[] strings, java.lang.String encoding)Create a native array of strings using the given encoding.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidread()Read back from native memory.java.lang.StringtoString()- 
Methods inherited from class com.sun.jna.Memoryalign, boundsCheck, clear, dispose, disposeAll, dump, finalize, free, getByte, getByteBuffer, getChar, getDouble, getFloat, getInt, getLong, getPointer, getShort, getString, getWideString, integrityCheck, malloc, purge, read, read, read, read, read, read, read, read, setByte, setChar, setDouble, setFloat, setInt, setLong, setPointer, setShort, setString, setWideString, share, share, size, valid, write, write, write, write, write, write, write, write
 - 
Methods inherited from class com.sun.jna.Pointerclear, createConstant, createConstant, dump, equals, getByteArray, getCharArray, getDoubleArray, getFloatArray, getIntArray, getLongArray, getNativeLong, getPointerArray, getPointerArray, getShortArray, getString, getStringArray, getStringArray, getStringArray, getStringArray, getValue, getWideStringArray, getWideStringArray, hashCode, indexOf, nativeValue, nativeValue, setMemory, setNativeLong, setString, setString, setValue
 
- 
 
- 
- 
- 
Constructor Detail- 
StringArraypublic StringArray(java.lang.String[] strings) Create a native array of strings.
 - 
StringArraypublic StringArray(java.lang.String[] strings, boolean wide)Create a native array of strings.
 - 
StringArraypublic StringArray(java.lang.String[] strings, java.lang.String encoding)Create a native array of strings using the given encoding.
 - 
StringArraypublic StringArray(WString[] strings) Create a native array of wide strings.
 
- 
 - 
Method Detail- 
readpublic void read() Read back from native memory.- Specified by:
- readin interface- Function.PostCallRead
 
 
- 
 
-