jGuru
Register Email     Password Forgot your
password?
HOME FAQS FORUMS DOWNLOADS ARTICLES PEERSCOPE LEARN

  Search   jGuru Search Help

Question JDK 1.4 has introdced the concept of direct buffers. Where can i get more information and/or samples for manipulating direct buffers?
Topics Java:API:JNI
Author Davanum Srinivas PREMIUM
Created Jul 30, 2001


Answer

JNI has been enhanced in v 1.4 to reflect a new feature of the java.nio package: direct buffers. The contents of a direct buffer can, potentially, reside in native memory outside of the ordinary garbage-collected heap. For information about direct buffers, please see New I/O APIs and the specification of the java.nio.ByteBuffer class.

The best sample of java.nio API is the JCanyon Demo. The jcanyon demonstration is a simple flight simulator which visualizes a large data set (roughly three hundred megabytes in size) using a slightly modified version of the free software OpenGLTM binding "OpenGL for Java" with a few minor additions to support java.nio direct buffers for holding geometric data.



Is this item helpful?  yes  no     Previous votes   Yes: 0  No: 0



Comments and alternative answers

Comment on this FAQ entry

There are currently no comments

Ask A Question



 
Related Links

JNI FAQ

JNI Forum

JNI Specification

Sun Tutorial Trail: Java Native Interface

JavaWorld JNI Tutorial

Sun's JNI FAQ

Wish List
Features
About jGuru
Contact Us

 



The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers