Java Doc for Native.java in  » 6.0-JDK-Platform » solaris » sun » awt » X11 » 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 » 6.0 JDK Platform » solaris » sun.awt.X11 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   sun.awt.X11.Native

Native
class Native (Code)
This class contains the collection of utility functions to help work with native data types on different platforms similarly.


Field Summary
static  intdataModel
    
static  intlongSize
    


Method Summary
static  longallocateLongArray(int length)
    
static  long[]card32ToArray(long ptr, int length)
    
static  longcard32ToData(long[] arr)
    
static  booleangetBool(long ptr)
     Set of helper function to read data of different PLATFORM types from memory pointer by ptr Note, names of types in function are NATIVE PLATFORM types and they have the same size as they would have in C compiler on the same platform.
static  booleangetBool(long ptr, int index)
    
static  bytegetByte(long ptr)
    
static  bytegetByte(long ptr, int index)
    
static  intgetByteSize()
    
static  longgetCard32(long ptr)
     Set of function to access CARD32 type.
static  longgetCard32(long ptr, int index)
    
static  intgetCard32Size()
    
static  intgetInt(long ptr)
    
static  intgetInt(long ptr, int index)
    
static  intgetIntSize()
    
static  longgetLong(long ptr)
    
static  longgetLong(long ptr, int index)
    
static  intgetLongSize()
    
static  shortgetShort(long ptr)
    
static  intgetShortSize()
    
static  shortgetUByte(long ptr)
    
static  shortgetUByte(long ptr, int index)
    
static  intgetUByteSize()
    
static  longgetUInt(long ptr)
    
static  longgetUInt(long ptr, int index)
    
static  intgetUIntSize()
    
static  longgetULong(long ptr)
    
static  intgetUShort(long ptr)
    
static  intgetUShortSize()
    
static  longgetWindow(long ptr)
    
static  longgetWindow(long ptr, int index)
    
static  intgetWindowSize()
     Set of function to return sizes of C data of the appropriate type.
static  voidput(long ptr, long[] arr)
     Stores Java long[] array into memory.
static  voidputBool(long ptr, boolean data)
    
static  voidputBool(long ptr, int index, boolean data)
    
static  voidputByte(long ptr, byte data)
    
static  voidputByte(long ptr, int index, byte data)
    
static  voidputCard32(long ptr, long value)
    
static  voidputCard32(long ptr, int index, long value)
    
static  voidputInt(long ptr, int data)
    
static  voidputInt(long ptr, int index, int data)
    
static  voidputLong(long ptr, long data)
    
static  voidputLong(long ptr, int index, long data)
    
static  voidputLong(long ptr, Vector arr)
     Stores Java Vector of Longs into memory.
static  voidputLongReverse(long ptr, Vector arr)
     Stores Java Vector of Longs into memory.
static  voidputShort(long ptr, short data)
    
static  voidputShort(long ptr, int index, short data)
    
static  voidputUByte(long ptr, short data)
    
static  voidputUByte(long ptr, int index, short data)
    
static  voidputUInt(long ptr, long data)
    
static  voidputUInt(long ptr, int index, long data)
    
static  voidputULong(long ptr, long value)
    
static  voidputUShort(long ptr, int data)
    
static  voidputUShort(long ptr, int index, int data)
    
static  voidputWindow(long ptr, long window)
    
static  voidputWindow(long ptr, int index, long window)
    
static  byte[]toBytes(long data, int length)
    
static  longtoData(byte[] bytes)
    
static  longtoData(short[] shorts)
    
static  longtoData(int[] ints)
    
static  longtoData(long[] longs)
    
static  long[]toLongs(long data, int length)
    
static  short[]toUBytes(long data, int length)
    
static  longtoUData(short[] bytes)
    
static  longtoUData(int[] shorts)
    
static  longtoUData(long[] ints)
    

Field Detail
dataModel
static int dataModel(Code)



longSize
static int longSize(Code)





Method Detail
allocateLongArray
static long allocateLongArray(int length)(Code)
Allocates memory for array of native longs of the size length



card32ToArray
static long[] card32ToArray(long ptr, int length)(Code)



card32ToData
static long card32ToData(long[] arr)(Code)



getBool
static boolean getBool(long ptr)(Code)
Set of helper function to read data of different PLATFORM types from memory pointer by ptr Note, names of types in function are NATIVE PLATFORM types and they have the same size as they would have in C compiler on the same platform.



getBool
static boolean getBool(long ptr, int index)(Code)



getByte
static byte getByte(long ptr)(Code)



getByte
static byte getByte(long ptr, int index)(Code)



getByteSize
static int getByteSize()(Code)
Access to C byte data(one byte)



getCard32
static long getCard32(long ptr)(Code)
Set of function to access CARD32 type. All data which types are derived from CARD32 should be accessed using this accessors. These types are: XID(Window, Drawable, Font, Pixmap, Cursor, Colormap, GContext, KeySym), Atom, Mask, VisualID, Time



getCard32
static long getCard32(long ptr, int index)(Code)



getCard32Size
static int getCard32Size()(Code)



getInt
static int getInt(long ptr)(Code)



getInt
static int getInt(long ptr, int index)(Code)



getIntSize
static int getIntSize()(Code)
Access to C int data(four bytes)



getLong
static long getLong(long ptr)(Code)



getLong
static long getLong(long ptr, int index)(Code)
Returns index's element of the array of native long pointed by ptr



getLongSize
static int getLongSize()(Code)
Access to C long data(size depends on platform)



getShort
static short getShort(long ptr)(Code)



getShortSize
static int getShortSize()(Code)
Access to C short data(two bytes)



getUByte
static short getUByte(long ptr)(Code)



getUByte
static short getUByte(long ptr, int index)(Code)



getUByteSize
static int getUByteSize()(Code)
Access to C unsigned byte data(one byte)



getUInt
static long getUInt(long ptr)(Code)



getUInt
static long getUInt(long ptr, int index)(Code)



getUIntSize
static int getUIntSize()(Code)
Access to C unsigned int data(four bytes)



getULong
static long getULong(long ptr)(Code)
Access to C "unsigned long" date type, which is XID in X



getUShort
static int getUShort(long ptr)(Code)



getUShortSize
static int getUShortSize()(Code)
Access to C unsigned short data(two bytes)



getWindow
static long getWindow(long ptr)(Code)



getWindow
static long getWindow(long ptr, int index)(Code)



getWindowSize
static int getWindowSize()(Code)
Set of function to return sizes of C data of the appropriate type.



put
static void put(long ptr, long[] arr)(Code)
Stores Java long[] array into memory. Memory location is treated as array of native longs



putBool
static void putBool(long ptr, boolean data)(Code)



putBool
static void putBool(long ptr, int index, boolean data)(Code)



putByte
static void putByte(long ptr, byte data)(Code)
Stores to C byte data(one byte)



putByte
static void putByte(long ptr, int index, byte data)(Code)



putCard32
static void putCard32(long ptr, long value)(Code)



putCard32
static void putCard32(long ptr, int index, long value)(Code)



putInt
static void putInt(long ptr, int data)(Code)
Stores to C int data(four bytes)



putInt
static void putInt(long ptr, int index, int data)(Code)



putLong
static void putLong(long ptr, long data)(Code)
Stores to C long data(four bytes) Note: data has long type to be able to keep 64-bit C long data



putLong
static void putLong(long ptr, int index, long data)(Code)



putLong
static void putLong(long ptr, Vector arr)(Code)
Stores Java Vector of Longs into memory. Memory location is treated as array of native longs



putLongReverse
static void putLongReverse(long ptr, Vector arr)(Code)
Stores Java Vector of Longs into memory. Memory location is treated as array of native longs. Array is stored in reverse order



putShort
static void putShort(long ptr, short data)(Code)
Stores to C short data(two bytes)



putShort
static void putShort(long ptr, int index, short data)(Code)



putUByte
static void putUByte(long ptr, short data)(Code)
Stores to C unsigned byte data(one byte)



putUByte
static void putUByte(long ptr, int index, short data)(Code)



putUInt
static void putUInt(long ptr, long data)(Code)
Stores to C unsigned int data(four bytes)



putUInt
static void putUInt(long ptr, int index, long data)(Code)



putULong
static void putULong(long ptr, long value)(Code)



putUShort
static void putUShort(long ptr, int data)(Code)
Stores to C unsigned short data(two bytes)



putUShort
static void putUShort(long ptr, int index, int data)(Code)



putWindow
static void putWindow(long ptr, long window)(Code)



putWindow
static void putWindow(long ptr, int index, long window)(Code)



toBytes
static byte[] toBytes(long data, int length)(Code)
Converts length bytes of data pointed by data into byte array Returns null if data is zero
Parameters:
  data - native pointer to native memory
Parameters:
  length - size in bytes of native memory



toData
static long toData(byte[] bytes)(Code)
Stores byte array into native memory and returns pointer to this memory Returns 0 if bytes is null



toData
static long toData(short[] shorts)(Code)



toData
static long toData(int[] ints)(Code)



toData
static long toData(long[] longs)(Code)



toLongs
static long[] toLongs(long data, int length)(Code)
Converts length bytes of data pointed by data into byte array Returns null if data is zero
Parameters:
  data - native pointer to native memory
Parameters:
  length - size in longs(platform dependent) of native memory



toUBytes
static short[] toUBytes(long data, int length)(Code)
Converts length usnigned bytes of data pointed by data into short array Returns null if data is zero
Parameters:
  data - native pointer to native memory
Parameters:
  length - size in bytes of native memory



toUData
static long toUData(short[] bytes)(Code)
Stores short array as unsigned bytes into native memory and returns pointer to this memory Returns 0 if bytes is null



toUData
static long toUData(int[] shorts)(Code)
Stores int array as unsigned shorts into native memory and returns pointer to this memory Returns 0 if bytes is null



toUData
static long toUData(long[] ints)(Code)
Stores long array as unsigned intss into native memory and returns pointer to this memory Returns 0 if bytes is null



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.