Core Java| JSP| Servlets| XML| EJB| JEE5| Web Services| J2ME| Glossary| Questions? | Software Development
 

Java Bytebuffer

                         

ByteBuffer is one of the sub class of abstract class Buffer in the "nio" package. 

Buffer class has subclasses for each non-boolean primitive type:

  1. ByteBuffer
  2. CharBuffer
  3. DoubleBuffer
  4. FloatBuffer
  5. IntBuffer
  6. LongBuffer
  7. ShortBuffer

If we compare these subclasses of Buffer, we will find them very similar. 

The ByteBuffer class provides two more capabilities that makes it more general than other subclasses of Buffer. 

These are methods absolute and relative get() and put() methods and methods for creating view buffers. This class is also important for the use of channels in java.

-- Absolute and relative get() is used to read and put() methods is used to write values of primitive types other than byte.
--  There are also methods needed to create the view buffers. This allows the byte buffer to be viewed as a general buffer that contains primitive type values other than Bytes.

 

                         

» View all related tutorials
Related Tags: c com io floating-point float numbers decimal number int this poi with point ci e it can use im complete

Leave your comment:

Name:

Email:

URL:

Title:

Comments:


Enter Code:

Audio Version
Reload Image
 

Note: Emails will not be visible or used in any way, and are not required. Please keep comments relevant. Any content deemed inappropriate or offensive may be edited and/or deleted.

No HTML code is allowed. Line breaks will be converted automatically. URLs will be auto-linked. Please use BBCode to format your text.

Add This Tutorial To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
 
Tell A Friend
Your Friend Name

 

 
Recently Viewed
Software Solutions
Search Tutorials

 

 
 

Home | JSP | EJB | JDBC | Java Servlets | WAP  | Free JSP Hosting  | Search Engine | News Archive | Jboss 3.0 tutorial | Free Linux CD's | Forum | Blogs

About Us | Advertising On RoseIndia.net  | Site Map

India News

Send your comments, Suggestions or Queries regarding this site at roseindia_net@yahoo.com.

Copyright © 2008. All rights reserved.