Java Doc for BufferFactory.java in  » Apache-Harmony-Java-SE » java-package » java » nio » 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 » java package » java.nio 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   java.nio.BufferFactory

BufferFactory
final class BufferFactory (Code)
Provide factory service of buffer classes.

Since all buffer impl classes are package private (except DirectByteBuffer), this factory is the only entrance to access buffer functions from outside of the impl package.





Method Summary
public static  ByteBuffernewByteBuffer(byte array)
     Returns a new byte buffer based on the specified byte array.
public static  ByteBuffernewByteBuffer(int capacity)
     Returns a new array based byte buffer with the specified capacity.
public static  CharBuffernewCharBuffer(char array)
     Returns a new char buffer based on the specified char array.
public static  CharBuffernewCharBuffer(CharSequence chseq)
     Returns a new readonly char buffer based on the specified char sequence.
public static  CharBuffernewCharBuffer(int capacity)
     Returns a new array based char buffer with the specified capacity.
public static  ByteBuffernewDirectByteBuffer(int capacity)
     Returns a new direct byte buffer with the specified capacity.
public static  DoubleBuffernewDoubleBuffer(double array)
     Returns a new double buffer based on the specified double array.
public static  DoubleBuffernewDoubleBuffer(int capacity)
     Returns a new array based double buffer with the specified capacity.
public static  FloatBuffernewFloatBuffer(float array)
     Returns a new float buffer based on the specified float array.
public static  FloatBuffernewFloatBuffer(int capacity)
     Returns a new array based float buffer with the specified capacity.
public static  IntBuffernewIntBuffer(int capacity)
     Returns a new array based int buffer with the specified capacity.
public static  IntBuffernewIntBuffer(int array)
     Returns a new int buffer based on the specified int array.
public static  LongBuffernewLongBuffer(int capacity)
     Returns a new array based long buffer with the specified capacity.
public static  LongBuffernewLongBuffer(long array)
     Returns a new long buffer based on the specified long array.
public static  ShortBuffernewShortBuffer(int capacity)
     Returns a new array based short buffer with the specified capacity.
public static  ShortBuffernewShortBuffer(short array)
     Returns a new short buffer based on the specified short array.



Method Detail
newByteBuffer
public static ByteBuffer newByteBuffer(byte array)(Code)
Returns a new byte buffer based on the specified byte array.
Parameters:
  array - The byte array A new byte buffer based on the specified byte array.



newByteBuffer
public static ByteBuffer newByteBuffer(int capacity)(Code)
Returns a new array based byte buffer with the specified capacity.
Parameters:
  capacity - The capacity of the new buffer A new array based byte buffer with the specified capacity.



newCharBuffer
public static CharBuffer newCharBuffer(char array)(Code)
Returns a new char buffer based on the specified char array.
Parameters:
  array - The char array A new char buffer based on the specified char array.



newCharBuffer
public static CharBuffer newCharBuffer(CharSequence chseq)(Code)
Returns a new readonly char buffer based on the specified char sequence.
Parameters:
  chseq - The char sequence A new readonly char buffer based on the specified char sequence.



newCharBuffer
public static CharBuffer newCharBuffer(int capacity)(Code)
Returns a new array based char buffer with the specified capacity.
Parameters:
  capacity - The capacity of the new buffer A new array based char buffer with the specified capacity.



newDirectByteBuffer
public static ByteBuffer newDirectByteBuffer(int capacity)(Code)
Returns a new direct byte buffer with the specified capacity.
Parameters:
  capacity - The capacity of the new buffer A new direct byte buffer with the specified capacity.



newDoubleBuffer
public static DoubleBuffer newDoubleBuffer(double array)(Code)
Returns a new double buffer based on the specified double array.
Parameters:
  array - The double array A new double buffer based on the specified double array.



newDoubleBuffer
public static DoubleBuffer newDoubleBuffer(int capacity)(Code)
Returns a new array based double buffer with the specified capacity.
Parameters:
  capacity - The capacity of the new buffer A new array based double buffer with the specified capacity.



newFloatBuffer
public static FloatBuffer newFloatBuffer(float array)(Code)
Returns a new float buffer based on the specified float array.
Parameters:
  array - The float array A new float buffer based on the specified float array.



newFloatBuffer
public static FloatBuffer newFloatBuffer(int capacity)(Code)
Returns a new array based float buffer with the specified capacity.
Parameters:
  capacity - The capacity of the new buffer A new array based float buffer with the specified capacity.



newIntBuffer
public static IntBuffer newIntBuffer(int capacity)(Code)
Returns a new array based int buffer with the specified capacity.
Parameters:
  capacity - The capacity of the new buffer A new array based int buffer with the specified capacity.



newIntBuffer
public static IntBuffer newIntBuffer(int array)(Code)
Returns a new int buffer based on the specified int array.
Parameters:
  array - The int array A new int buffer based on the specified int array.



newLongBuffer
public static LongBuffer newLongBuffer(int capacity)(Code)
Returns a new array based long buffer with the specified capacity.
Parameters:
  capacity - The capacity of the new buffer A new array based long buffer with the specified capacity.



newLongBuffer
public static LongBuffer newLongBuffer(long array)(Code)
Returns a new long buffer based on the specified long array.
Parameters:
  array - The long array A new long buffer based on the specified long array.



newShortBuffer
public static ShortBuffer newShortBuffer(int capacity)(Code)
Returns a new array based short buffer with the specified capacity.
Parameters:
  capacity - The capacity of the new buffer A new array based short buffer with the specified capacity.



newShortBuffer
public static ShortBuffer newShortBuffer(short array)(Code)
Returns a new short buffer based on the specified short array.
Parameters:
  array - The short array A new short buffer based on the specified short array.



Methods inherited from java.lang.Object
protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object object)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final public Class<? extends Object> getClass()(Code)(Java Doc)
public int hashCode()(Code)(Java Doc)
final public void notify()(Code)(Java Doc)
final public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final public void wait(long millis, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait(long millis) 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.