1
Pins

How to use ByteBuffer in Java?

posted by anishaanisha 619 days, 15 hours, 54 minutes ago
Wednesday, August 08, 2012 9:33:03 PM GMT

ByteBuffer API has been in Java since 1.4. The name itself suggests that these contain bytes of data. The data to be stored in the buffer can be Integer (int, long), Characters (char), Floating value (double), all these are converted into bytes before being stored in the buffer array. ByteBuffer can be of two types- Direct ByteBufferNon-Direct ByteBuffer Direct ByteBuffer: JVM tries to use Native IO operations on buffers which are created as direct i.e it doesnt load the buffer contents into another buf...

category: Java EE | clicked: 0 | | source: www.javabeat.net | show counter code
tags: ByteBuffer, Java


To post comments using your Facebook,Twitter, Gmail etc credentials in the Discus comments section. Or use your Javapins credentials at the end of the page.
To post your comment as a Javapins user please login or signup to Javapins database.