Java java.nio ByteBuffer

Introduction

  1. Java ByteBuffer create
  2. Java ByteBuffer allocation automatically zeroes the ByteBuffer
  3. Java ByteBuffer check If a ByteBuffer is direct
  4. Java ByteBuffer compare capacity against IntBuffer after converting to IntBuffer
  5. Java ByteBuffer convert from FloatBuffer
  6. Java ByteBuffer convert remaining byte buffer to byte array
  7. Java ByteBuffer convert remaining byte buffer to String by UTF-8
  8. Java ByteBuffer convert to Base64 String


  9. Java ByteBuffer convert to byte array
  10. Java ByteBuffer convert to CharBuffer
  11. Java ByteBuffer convert to CharBuffer with half size
  12. Java ByteBuffer convert to DoubleBuffer
  13. Java ByteBuffer convert to FloatBuffer
  14. Java ByteBuffer convert to hexadecimal string
  15. Java ByteBuffer convert to IntBuffer
  16. Java ByteBuffer convert to LongBuffer


  17. Java ByteBuffer convert to read only ByteBuffer
  18. Java ByteBuffer convert to ShortBuffer
  19. Java ByteBuffer convert to String and show endian difference
  20. Java ByteBuffer convert to String by Charset
  21. Java ByteBuffer convert to String by CharsetDecoder
  22. Java ByteBuffer convert to String by US-ASCII encoding
  23. Java ByteBuffer convert to String by UTF-8
  24. Java ByteBuffer convert to String hexadecimal
  25. Java ByteBuffer convert to String via CharBuffer
  26. Java ByteBuffer copy to another ByteBuffer
  27. Java ByteBuffer create byte buffer of capacity 8
  28. Java ByteBuffer create from byte array
  29. Java ByteBuffer display content
  30. Java ByteBuffer flip before reading
  31. Java ByteBuffer get and set char type data
  32. Java ByteBuffer get and set double type data
  33. Java ByteBuffer get and set float type data
  34. Java ByteBuffer get and set int type data
  35. Java ByteBuffer get and set long type data
  36. Java ByteBuffer get and set short type data
  37. Java ByteBuffer get byte
  38. Java ByteBuffer get byte array between the position and limit
  39. Java ByteBuffer get byte array by length
  40. Java ByteBuffer get byte order:Big Endian or Little Endian
  41. Java ByteBuffer get default byte ordering
  42. Java ByteBuffer get read only byte buffer
  43. Java ByteBuffer get sub buffer from offset and length
  44. Java ByteBuffer get sub buffer from offset to end
  45. Java ByteBuffer iterate
  46. Java ByteBuffer load from File
  47. Java ByteBuffer mark
  48. Java ByteBuffer put buffer in little endian byte order
  49. Java ByteBuffer read from ReadableByteChannel
  50. Java ByteBuffer save to a File via FileChannel
  51. Java ByteBuffer save to file using FileChannel
  52. Java ByteBuffer save to file using FileOutputStream
  53. Java ByteBuffer search for byte array
  54. Java ByteBuffer search for byte array from offset
  55. Java ByteBuffer set limit to current position
  56. Java ByteBuffer set position
  57. Java ByteBuffer store byte
  58. Java ByteBuffer store byte array
  59. Java ByteBuffer store char and extend the buffer if needed
  60. Java ByteBuffer store char array via CharBuffer and read
  61. Java ByteBuffer store double type data via DoubleBuffer and read
  62. Java ByteBuffer store float array
  63. Java ByteBuffer store float list
  64. Java ByteBuffer store float type array
  65. Java ByteBuffer store float type data via FloatBuffer and read
  66. Java ByteBuffer store float type value
  67. Java ByteBuffer store int type value via IntBuffer and read
  68. Java ByteBuffer store long type data via LongBuffer and read
  69. Java ByteBuffer store Serializable object
  70. Java ByteBuffer store short type value
  71. Java ByteBuffer store short type value via ShortBuffer and read
  72. Java ByteBuffer store String by Charset
  73. Java ByteBuffer wrap as OutputStream
  74. Java ByteBuffer wrap as ReadableByteChannel
  75. Java ByteBuffer wrap byte array and rewind to loop again
  76. Java ByteBuffer decode to CharBuffer