Java Doc for Int8Pointer.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.VoidPointer
      org.apache.harmony.awt.nativebridge.Int8Pointer

Int8Pointer
public class Int8Pointer extends VoidPointer (Code)
This class represents pointer to memory for working with native functions. It is an analogue of char* C type. Every pointed object can be direct native object or Java object. In both cases NativeBridge provides correct passing addresses to native functions, native address is passed as is, Java object will be implicitly locked and address of lock will be passed to native. NULL pointer can't be wrapped by this object, NULL is represents by Java null value.



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

Method Summary
public  voidfill(byte value, int size)
    
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  Int8PointergetElementPointer(int index)
     Returns class that represents the pointer to specified index.
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  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  voidsetStringUTF(String str)
     Convert String to 0 terminated UTF8 (Unicode) string.
public  intsize()
    


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



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



Int8Pointer
Int8Pointer(long addr)(Code)



Int8Pointer
Int8Pointer(VoidPointer p)(Code)



Int8Pointer
Int8Pointer(ByteBase base)(Code)




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



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()



getElementPointer
public Int8Pointer getElementPointer(int index)(Code)
Returns class that represents the pointer to specified index.
Parameters:
  index - - index from which pointer is returned
throws:
  IndexOutOfBoundsException - if index is out of range



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.



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



setStringUTF
public void setStringUTF(String str)(Code)
Convert String to 0 terminated UTF8 (Unicode) string. And set it to buffer



size
public int size()(Code)



Fields inherited from org.apache.harmony.awt.nativebridge.VoidPointer
public ByteBase byteBase(Code)(Java Doc)
boolean explicitlyLocked(Code)(Java Doc)

Methods inherited from org.apache.harmony.awt.nativebridge.VoidPointer
public void copy(VoidPointer src, int dstOffset, int length)(Code)(Java Doc)
public void free()(Code)(Java Doc)
final long internalLongLock()(Code)(Java Doc)
final void internalRelease()(Code)(Java Doc)
final void internalReleaseNoCopy()(Code)(Java Doc)
final long internalShortLock()(Code)(Java Doc)
public boolean isDirect()(Code)(Java Doc)
final public long lock()(Code)(Java Doc)
public long longLockPointer()(Code)(Java Doc)
final public void release()(Code)(Java Doc)
final public void releaseNoCopy()(Code)(Java Doc)
public long shortLockPointer()(Code)(Java Doc)
abstract public int size()(Code)(Java Doc)
public void unlock()(Code)(Java Doc)

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.