be.cardon.nativecall
Class NativeUTF8String

java.lang.Object
  extended by be.cardon.nativecall.NativeObject
      extended by be.cardon.nativecall.NativeUTF8String

public class NativeUTF8String
extends NativeObject

NULL terminated UTF-8 string native object.


Field Summary
 
Fields inherited from class be.cardon.nativecall.NativeObject
BYTE_SIZE, INT_SIZE, LLC
 
Method Summary
static NativeUTF8String newInstance(java.lang.String str)
          Copy a given string to new allocated NULL terminated UTF-8 string char[].
 
Methods inherited from class be.cardon.nativecall.NativeObject
finalize, getAddress, getLength, isReadOnly, setReadOnly
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

newInstance

public static NativeUTF8String newInstance(java.lang.String str)
                                    throws NativeCallException
Copy a given string to new allocated NULL terminated UTF-8 string char[].

Parameters:
str - String to be copied.
Returns:
NativeUTF8String native object. This object extends the NativeObject.
Throws:
NativeCallException