Java Doc for ByteBase.java in  » Apache-Harmony-Java-SE » org-package » org » apache » harmony » awt » nativebridge » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Apache Harmony Java SE » org package » org.apache.harmony.awt.nativebridge 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.harmony.awt.nativebridge.ByteBase

ByteBase
public class ByteBase (Code)


Field Summary
final public static  intCLONG_SIZE
     size of C long type, in bytes.
final static  intJAVA_BYTE_ORDER
    
final static  intNATIVE_BYTE_ORDER
    
final public static  intPOINTER_SIZE
     size of C pointer type, in bytes.
static  ArrayAccessorarac
    
static  MemoryAccessormacc
    
static  NativeBridgenb
    
static  StringAccessorstac
    

Constructor Summary
 ByteBase(int size, boolean direct)
    
 ByteBase(byte[] arr, int offset, int size)
    
 ByteBase(long addr)
    

Method Summary
final  voidcheckArraysBounds(int toIdx, int srcDstLength, int copyLength, int bytesInData)
    
final  voidcheckIndex(int index, int numBytes)
    
 voidcopy(ByteBase src, int dstOffset, int length)
     Copies length bytes from src byteBase to this byteBase. Offset in destination base is dstOffset.
public  voidfill(byte value, int size)
    
public  voidfree()
    
public  byteget(int index)
     Returns the element at the specified position.
public  voidget(byte[] dst, int from, int length)
     This method transfers bytes into the given destination array.
public  longgetAddress(int index)
     Returns native pointer value from the specified index.
 ByteBasegetBytesBaseElementPointer(int index, int numBytes)
    
public  longgetCLong(int index)
    
public  voidgetCLong(long[] dst, int offset, int length)
     This method transfers C long values into the given destination array.
public  chargetChar(int index)
     Reads two bytes at the given index, composing them into a char value according.
public  voidgetChar(char[] dst, int offset, int length)
     This method transfers chars into the given destination array.
 chargetCharFromArray(int index)
     Gets char from the internal array reordering bytes according platform byte order.
public  doublegetDouble(int index)
    
public  voidgetDouble(double[] dst, int offset, int length)
     This method transfers double values into the given destination array.
public  Int8PointergetElementPointer(int index)
    
public  floatgetFloat(int index)
    
public  voidgetFloat(float[] dst, int offset, int length)
     This method transfers float values into the given destination array.
public  shortgetInt16(int index)
    
public  voidgetInt16(short[] dst, int offset, int length)
     This method transfers short values into the given destination array.
 shortgetInt16FromArray(int index)
    
public  intgetInt32(int index)
    
public  voidgetInt32(int[] dst, int offset, int length)
     This method transfers int values into the given destination array.
 intgetInt32FromArray(int index)
    
public  longgetInt64(int index)
    
public  voidgetInt64(long[] dst, int offset, int length)
     This method transfers long values into the given destination array.
 longgetInt64FromArray(int index)
    
public  StringgetString()
     Creates String from 0 terminated UTF16 (Unicode) string.
public  StringgetString(long strlen)
     Creates String from 0 terminated UTF16 (Unicode) string of max strlen length in bytes.
 StringgetStringFromArray(int length)
    
public  StringgetStringUTF()
     Creates String from 0 terminated modified UTF8 string.
public  StringgetStringUTF(long strlen)
     Creates String from 0 terminated modified UTF8 native string of max strlen length in bytes.
public  booleanisDirect()
    
public  longlongLockPointer()
    
public  voidset(byte[] src, int offset, int length)
     This method transfers bytes from the given destination array.
public  voidset(int index, byte value)
     Sets the element at the specified position.
public  voidsetAddress(int index, long value)
     Sets the native address to the specified index.
public  voidsetCLong(int index, long value)
    
public  voidsetCLong(long[] src, int offset, int length)
     This method transfers C long values from the given destination array.
public  voidsetChar(int index, char value)
    
public  voidsetChar(char[] src, int offset, int length)
     This method transfers chars from the given destination array.
 voidsetCharInArray(int index, char value)
     Sets char in the internal array reordering bytes according platform byte order.
public  voidsetDouble(int index, double value)
    
public  voidsetDouble(double[] src, int offset, int length)
     This method transfers double values from the given destination array.
public  voidsetFloat(int index, float value)
    
public  voidsetFloat(float[] src, int offset, int length)
     This method transfers float values from the given destination array.
public  voidsetInt16(int index, short value)
    
public  voidsetInt16(short[] src, int offset, int length)
     This method transfers short values from the given destination array.
 voidsetInt16InArray(int index, short value)
    
public  voidsetInt32(int index, int value)
    
public  voidsetInt32(int[] src, int offset, int length)
     This method transfers int values from the given destination array.
 voidsetInt32InArray(int index, int value)
    
public  voidsetInt64(int index, long value)
    
public  voidsetInt64(long[] src, int offset, int length)
     This method transfers long values from the given destination array.
 voidsetInt64InArray(int index, long value)
    
public  voidsetPointer(int index, VoidPointer p)
    
public  voidsetString(String str)
     Convert String to 0 terminated UTF16 (Unicode) string. And set it to the internal buffer. TODO: 1.
 voidsetStringInArray(String str)
    
public  voidsetStringUTF(String str)
     Convert String to 0 terminated UTF8 (Unicode) string.
 longshortLockPointer()
    
public  intsize()
     returns the number of elements in memeory referenced by this pointer.
 voidunlock()
    
 voidunlockNoCopy()
    

Field Detail
CLONG_SIZE
final public static int CLONG_SIZE(Code)
size of C long type, in bytes.



JAVA_BYTE_ORDER
final static int JAVA_BYTE_ORDER(Code)



NATIVE_BYTE_ORDER
final static int NATIVE_BYTE_ORDER(Code)



POINTER_SIZE
final public static int POINTER_SIZE(Code)
size of C pointer type, in bytes.



arac
static ArrayAccessor arac(Code)



macc
static MemoryAccessor macc(Code)



nb
static NativeBridge nb(Code)



stac
static StringAccessor stac(Code)




Constructor Detail
ByteBase
ByteBase(int size, boolean direct)(Code)



ByteBase
ByteBase(byte[] arr, int offset, int size)(Code)



ByteBase
ByteBase(long addr)(Code)




Method Detail
checkArraysBounds
final void checkArraysBounds(int toIdx, int srcDstLength, int copyLength, int bytesInData)(Code)



checkIndex
final void checkIndex(int index, int numBytes) throws IndexOutOfBoundsException(Code)



copy
void copy(ByteBase src, int dstOffset, int length)(Code)
Copies length bytes from src byteBase to this byteBase. Offset in destination base is dstOffset. Starting offset in src base is always 0;
Parameters:
  src - source byte base
Parameters:
  dstOffset - destination
Parameters:
  length -



fill
public void fill(byte value, int size)(Code)



free
public void free()(Code)

See Also:   VoidPointer.free



get
public byte get(int index)(Code)
Returns the element at the specified position.
throws:
  IndexOutOfBoundsException - if index is out of range



get
public void get(byte[] dst, int from, int length)(Code)
This method transfers bytes into the given destination array.
Parameters:
  dst - - The array into which bytes are to be written
Parameters:
  from - - Initial offset in the destination array.Must be non-negative and no larger than dst.length
Parameters:
  length - - The maximum number of bytes to be written to the given array;must be non-negative and no larger than dst.length - from
throws:
  IndexOutOfBoundsException - if from < 0 || from > dst.length
throws:
  IndexOutOfBoundsException - if length < 0 || length > dst.length - from
throws:
  IndexOutOfBoundsException - if length > this.size()



getAddress
public long getAddress(int index)(Code)
Returns native pointer value from the specified index.
throws:
  IndexOutOfBoundsException - if index is out of range



getBytesBaseElementPointer
ByteBase getBytesBaseElementPointer(int index, int numBytes)(Code)



getCLong
public long getCLong(int index)(Code)
Reads 4/8 bytes (depending of C long type size on current platform) at the given index, composing them into a long value according
Parameters:
  index - - The index from which the bytes will be read The long value at the given index
throws:
  IndexOutOfBoundsException - if index is out of range



getCLong
public void getCLong(long[] dst, int offset, int length)(Code)
This method transfers C long values into the given destination array.
Parameters:
  dst - - The array into which values are to be written
Parameters:
  offset - - The offset within the array of the first element to be written;must be non-negative and no larger than dst.length
Parameters:
  length - - The maximum number of elements to be written to the given array;must be non-negative and no larger than dst.length - offset
throws:
  IndexOutOfBoundsException - if from < 0 || from > src.length
throws:
  IndexOutOfBoundsException - if length < 0 || length > src.length - from
throws:
  IndexOutOfBoundsException - if length > this.size()



getChar
public char getChar(int index)(Code)
Reads two bytes at the given index, composing them into a char value according.
Parameters:
  index - - The index from which the bytes will be read The char value at the given index
throws:
  IndexOutOfBoundsException - if index is out of range



getChar
public void getChar(char[] dst, int offset, int length)(Code)
This method transfers chars into the given destination array.
Parameters:
  dst - - The array into which chars are to be written
Parameters:
  offset - - The offset within the array of the first element to be written;must be non-negative and no larger than dst.length
Parameters:
  length - - The maximum number of elements to be written to the given array;must be non-negative and no larger than dst.length - offset
throws:
  IndexOutOfBoundsException - if from < 0 || from > src.length
throws:
  IndexOutOfBoundsException - if length < 0 || length > src.length - from
throws:
  IndexOutOfBoundsException - if length > this.size()



getCharFromArray
char getCharFromArray(int index)(Code)
Gets char from the internal array reordering bytes according platform byte order. It is convinient method to be used in subclasses



getDouble
public double getDouble(int index)(Code)
Reads four bytes at the given index, composing them into a double value according
Parameters:
  index - - The index from which the bytes will be read The double value at the given index
throws:
  IndexOutOfBoundsException - if index is out of range



getDouble
public void getDouble(double[] dst, int offset, int length)(Code)
This method transfers double values into the given destination array.
Parameters:
  dst - - The array into which values are to be written
Parameters:
  offset - - The offset within the array of the first element to be written;must be non-negative and no larger than dst.length
Parameters:
  length - - The maximum number of elements to be written to the given array;must be non-negative and no larger than dst.length - offset
throws:
  IndexOutOfBoundsException - if from < 0 || from > src.length
throws:
  IndexOutOfBoundsException - if length < 0 || length > src.length - from
throws:
  IndexOutOfBoundsException - if length > this.size()



getElementPointer
public Int8Pointer getElementPointer(int index)(Code)



getFloat
public float getFloat(int index)(Code)
Reads four bytes at the given index, composing them into a float value according
Parameters:
  index - - The index from which the bytes will be read The float value at the given index
throws:
  IndexOutOfBoundsException - if index is out of range



getFloat
public void getFloat(float[] dst, int offset, int length)(Code)
This method transfers float values into the given destination array.
Parameters:
  dst - - The array into which values are to be written
Parameters:
  offset - - The offset within the array of the first element to be written;must be non-negative and no larger than dst.length
Parameters:
  length - - The maximum number of elements to be written to the given array;must be non-negative and no larger than dst.length - offset
throws:
  IndexOutOfBoundsException - if from < 0 || from > src.length
throws:
  IndexOutOfBoundsException - if length < 0 || length > src.length - from
throws:
  IndexOutOfBoundsException - if length > this.size()



getInt16
public short getInt16(int index)(Code)
Reads two bytes at the given index, composing them into a short value according
Parameters:
  index - - The index to which the bytes will be write The short value at the given index
throws:
  IndexOutOfBoundsException - if index is out of range



getInt16
public void getInt16(short[] dst, int offset, int length)(Code)
This method transfers short values into the given destination array.
Parameters:
  dst - - The array into which values are to be written
Parameters:
  offset - - The offset within the array of the first element to be written;must be non-negative and no larger than dst.length
Parameters:
  length - - The maximum number of elements to be written to the given array;must be non-negative and no larger than dst.length - offset
throws:
  IndexOutOfBoundsException - if from < 0 || from > src.length
throws:
  IndexOutOfBoundsException - if length < 0 || length > src.length - from
throws:
  IndexOutOfBoundsException - if length > this.size()



getInt16FromArray
short getInt16FromArray(int index)(Code)



getInt32
public int getInt32(int index)(Code)
Reads four bytes at the given index, composing them into a int value according
Parameters:
  index - - The index from which the bytes will be read The int value at the given index
throws:
  IndexOutOfBoundsException - if index is out of range



getInt32
public void getInt32(int[] dst, int offset, int length)(Code)
This method transfers int values into the given destination array.
Parameters:
  dst - - The array into which values are to be written
Parameters:
  offset - - The offset within the array of the first element to be written;must be non-negative and no larger than dst.length
Parameters:
  length - - The maximum number of elements to be written to the given array;must be non-negative and no larger than dst.length - offset
throws:
  IndexOutOfBoundsException - if from < 0 || from > src.length
throws:
  IndexOutOfBoundsException - if length < 0 || length > src.length - from
throws:
  IndexOutOfBoundsException - if length > this.size()



getInt32FromArray
int getInt32FromArray(int index)(Code)



getInt64
public long getInt64(int index)(Code)
Reads 8 bytes at the given index, composing them into a long value according
Parameters:
  index - - The index from which the bytes will be read The long value at the given index
throws:
  IndexOutOfBoundsException - if index is out of range



getInt64
public void getInt64(long[] dst, int offset, int length)(Code)
This method transfers long values into the given destination array.
Parameters:
  dst - - The array into which values are to be written
Parameters:
  offset - - The offset within the array of the first element to be written;must be non-negative and no larger than dst.length
Parameters:
  length - - The maximum number of elements to be written to the given array;must be non-negative and no larger than dst.length - offset
throws:
  IndexOutOfBoundsException - if from < 0 || from > src.length
throws:
  IndexOutOfBoundsException - if length < 0 || length > src.length - from
throws:
  IndexOutOfBoundsException - if length > this.size()



getInt64FromArray
long getInt64FromArray(int index)(Code)



getString
public String getString()(Code)
Creates String from 0 terminated UTF16 (Unicode) string. convert UTF16 bytes to String



getString
public String getString(long strlen)(Code)
Creates String from 0 terminated UTF16 (Unicode) string of max strlen length in bytes.



getStringFromArray
String getStringFromArray(int length)(Code)



getStringUTF
public String getStringUTF()(Code)
Creates String from 0 terminated modified UTF8 string.



getStringUTF
public String getStringUTF(long strlen)(Code)
Creates String from 0 terminated modified UTF8 native string of max strlen length in bytes. TODO bounds check for Modified UTF-8 strings?



isDirect
public boolean isDirect()(Code)

See Also:   VoidPointer.isDirect



longLockPointer
public long longLockPointer()(Code)

See Also:   VoidPointer.longLockPointer



set
public void set(byte[] src, int offset, int length)(Code)
This method transfers bytes from the given destination array.
Parameters:
  src - - The array from which bytes are to be read
Parameters:
  offset - - The offset within the array of the first byte to be read;must be non-negative and no larger than dst.length
Parameters:
  length - - The maximum number of bytes to be read from the given array;must be non-negative and no larger than array.length - offset
throws:
  IndexOutOfBoundsException - if from < 0 || from > src.length
throws:
  IndexOutOfBoundsException - if length < 0 || length > src.length - from
throws:
  IndexOutOfBoundsException - if length > this.size()



set
public void set(int index, byte value)(Code)
Sets the element at the specified position.
throws:
  IndexOutOfBoundsException - if index is out of range



setAddress
public void setAddress(int index, long value)(Code)
Sets the native address to the specified index.
throws:
  IndexOutOfBoundsException - if index is out of range



setCLong
public void setCLong(int index, long value)(Code)
Writes 4/8 bytes (depending of C long type size on current platform) to the given index, decomposing them from a long value according
Parameters:
  index - - The index from which the bytes will be write
Parameters:
  value - - long value
throws:
  IndexOutOfBoundsException - if index is out of range



setCLong
public void setCLong(long[] src, int offset, int length)(Code)
This method transfers C long values from the given destination array.
Parameters:
  src - - The array from which values are to be read
Parameters:
  offset - - The offset within the array of the first element to be read;must be non-negative and no larger than dst.length
Parameters:
  length - - The maximum number of elements to be read from the given array;must be non-negative and no larger than dst.length - offset
throws:
  IndexOutOfBoundsException - if from < 0 || from > src.length
throws:
  IndexOutOfBoundsException - if length < 0 || length > src.length - from
throws:
  IndexOutOfBoundsException - if length > this.size()



setChar
public void setChar(int index, char value)(Code)
Writes two bytes to the given index, decomposing them from a char value according
Parameters:
  index - - The index from which the bytes will be read
Parameters:
  value - - char value
throws:
  IndexOutOfBoundsException - if index is out of range



setChar
public void setChar(char[] src, int offset, int length)(Code)
This method transfers chars from the given destination array.
Parameters:
  src - - The array from which chars are to be read
Parameters:
  offset - - The offset within the array of the first element to be read;must be non-negative and no larger than dst.length
Parameters:
  length - - The maximum number of elements to be read from the given array;must be non-negative and no larger than dst.length - offset
throws:
  IndexOutOfBoundsException - if from < 0 || from > src.length
throws:
  IndexOutOfBoundsException - if length < 0 || length > src.length - from
throws:
  IndexOutOfBoundsException - if length > this.size()



setCharInArray
void setCharInArray(int index, char value)(Code)
Sets char in the internal array reordering bytes according platform byte order. It is convinient method to be used in subclasses



setDouble
public void setDouble(int index, double value)(Code)
Writes four bytes to the given index, decomposing them from a double value according
Parameters:
  index - - The index from which the bytes will be write
Parameters:
  value - - double value
throws:
  IndexOutOfBoundsException - if index is out of range



setDouble
public void setDouble(double[] src, int offset, int length)(Code)
This method transfers double values from the given destination array.
Parameters:
  src - - The array from which values are to be read
Parameters:
  offset - - The offset within the array of the first element to be read;must be non-negative and no larger than dst.length
Parameters:
  length - - The maximum number of elements to be read from the given array;must be non-negative and no larger than dst.length - offset
throws:
  IndexOutOfBoundsException - if from < 0 || from > src.length
throws:
  IndexOutOfBoundsException - if length < 0 || length > src.length - from
throws:
  IndexOutOfBoundsException - if length > this.size()



setFloat
public void setFloat(int index, float value)(Code)
Writes four bytes to the given index, decomposing them from a float value according
Parameters:
  index - - The index from which the bytes will be write
Parameters:
  value - - float value
throws:
  IndexOutOfBoundsException - if index is out of range



setFloat
public void setFloat(float[] src, int offset, int length)(Code)
This method transfers float values from the given destination array.
Parameters:
  src - - The array from which values are to be read
Parameters:
  offset - - The offset within the array of the first element to be read;must be non-negative and no larger than dst.length
Parameters:
  length - - The maximum number of elements to be read from the given array;must be non-negative and no larger than dst.length - offset
throws:
  IndexOutOfBoundsException - if from < 0 || from > src.length
throws:
  IndexOutOfBoundsException - if length < 0 || length > src.length - from
throws:
  IndexOutOfBoundsException - if length > this.size()



setInt16
public void setInt16(int index, short value)(Code)
Writes two bytes to the given index, decomposing them from a short value according
Parameters:
  index - - The index from which the bytes will be write
Parameters:
  value - - short value
throws:
  IndexOutOfBoundsException - if index is out of range



setInt16
public void setInt16(short[] src, int offset, int length)(Code)
This method transfers short values from the given destination array.
Parameters:
  src - - The array from which values are to be read
Parameters:
  offset - - The offset within the array of the first element to be read;must be non-negative and no larger than dst.length
Parameters:
  length - - The maximum number of elements to be read from the given array;must be non-negative and no larger than dst.length - offset
throws:
  IndexOutOfBoundsException - if from < 0 || from > src.length
throws:
  IndexOutOfBoundsException - if length < 0 || length > src.length - from
throws:
  IndexOutOfBoundsException - if length > this.size()



setInt16InArray
void setInt16InArray(int index, short value)(Code)



setInt32
public void setInt32(int index, int value)(Code)
Writes four bytes to the given index, decomposing them from a int value according
Parameters:
  index - - The index from which the bytes will be write
Parameters:
  value - - int value
throws:
  IndexOutOfBoundsException - if index is out of range



setInt32
public void setInt32(int[] src, int offset, int length)(Code)
This method transfers int values from the given destination array.
Parameters:
  src - - The array from which values are to be read
Parameters:
  offset - - The offset within the array of the first element to be read;must be non-negative and no larger than dst.length
Parameters:
  length - - The maximum number of elements to be read from the given array;must be non-negative and no larger than dst.length - offset
throws:
  IndexOutOfBoundsException - if from < 0 || from > src.length
throws:
  IndexOutOfBoundsException - if length < 0 || length > src.length - from
throws:
  IndexOutOfBoundsException - if length > this.size()



setInt32InArray
void setInt32InArray(int index, int value)(Code)



setInt64
public void setInt64(int index, long value)(Code)
Writes 8 bytes to the given index, decomposing them from a long value according
Parameters:
  index - - The index from which the bytes will be write
Parameters:
  value - - long value
throws:
  IndexOutOfBoundsException - if index is out of range



setInt64
public void setInt64(long[] src, int offset, int length)(Code)
This method transfers long values from the given destination array.
Parameters:
  src - - The array from which values are to be read
Parameters:
  offset - - The offset within the array of the first element to be read;must be non-negative and no larger than dst.length
Parameters:
  length - - The maximum number of elements to be read from the given array;must be non-negative and no larger than dst.length - offset
throws:
  IndexOutOfBoundsException - if from < 0 || from > src.length
throws:
  IndexOutOfBoundsException - if length < 0 || length > src.length - from
throws:
  IndexOutOfBoundsException - if length > this.size()



setInt64InArray
void setInt64InArray(int index, long value)(Code)



setPointer
public void setPointer(int index, VoidPointer p)(Code)

Parameters:
  index -
Parameters:
  p - - pointer to set; should be unlocked in a caller method after usage;



setString
public void setString(String str)(Code)
Convert String to 0 terminated UTF16 (Unicode) string. And set it to the internal buffer. TODO: 1. if size is unknown TODO: 2. add convinient method getChars(addr, size, str) to StringAccessor to avoid substringing in it



setStringInArray
void setStringInArray(String str)(Code)



setStringUTF
public void setStringUTF(String str)(Code)
Convert String to 0 terminated UTF8 (Unicode) string. And set it to buffer TODO add convinient method getUTFChars(addr, size, str) to StringAccessor



shortLockPointer
long shortLockPointer()(Code)

See Also:   VoidPointer.shortLockPointer



size
public int size()(Code)
returns the number of elements in memeory referenced by this pointer. Returns -1 if size is unknown.



unlock
void unlock()(Code)



unlockNoCopy
void unlockNoCopy()(Code)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.