Java java.nio ByteBuffer

Java examples for java.nio:ByteBuffer

Description

Click the following links for the tutorial for java.nio and ByteBuffer.

  1. Convert ByteBuffer as String
  2. String To ByteBuffer
  3. wrap String into ByteBuffer
  4. compare ByteBuffer To another ByteBuffer
  5. If one ByteBuffer contains another ByteBuffer
  6. copy one ByteBuffer to another ByteBuffer
  7. ByteBuffer position is 0 and limit = capacity.
  8. is ByteBuffer Predecessor Equals


  9. is ByteBuffer Successor
  10. ByteBuffer to Bytes
  11. get Long from byte array via ByteBuffer
  12. Converts a byte array to a float via ByteBuffer.
  13. Convert remaining ByteBuffer to byte array.
  14. Convert whole ByteBuffer to UTF-8 String.
  15. Convert remaining ByteBuffer to UTF-8 String.
  16. Convert whole ByteBuffer to unsigned integer.


  17. Convert whole ByteBuffer to long.
  18. int To Bytes via ByteBuffer
  19. compare Binary ByteBuffer
  20. read String from ByteBuffer
  21. read File from URL to ByteBuffer
  22. skip ByteBuffer by offset
  23. Read Double from InputStream via ByteBuffer
  24. Read Float from InputStream via ByteBuffer
  25. Read Int from InputStream via ByteBuffer
  26. Read Short from InputStream via ByteBuffer
  27. Read Unsigned Int from InputStream via ByteBuffer
  28. Read Unsigned Short from InputStream via ByteBuffer
  29. read Short Array from ByteBuffer
  30. array to Byte Buffer
  31. list of float to ByteBuffer
  32. get Char Sequence from ByteBuffer
  33. index Of byte in ByteBuffer
  34. Finds the position of a byte relative to the start of the buffer.
  35. put Char Sequence to ByteBuffer
  36. put String to ByteBuffer
  37. make ByteBuffer
  38. Merge a list of buffers into a single ByteBuffer.
  39. write Double to ByteBuffer
  40. write Float to ByteBuffer
  41. write Int to ByteBuffer
  42. copy ByteBuffer
  43. copy Double Buffer As Byte Buffer
  44. copy Float Buffer As Byte Buffer
  45. copy Int Buffer As Byte Buffer
  46. copy Long Buffer As Byte Buffer
  47. copy Short Buffer As Byte Buffer
  48. new Byte Buffer
  49. Deserialize an object from a ByteBuffer.
  50. Convert a serializable object to ByteBuffer.
  51. setup ByteBuffer
  52. duplicate ByteBuffer And Merge
  53. merge ByteBuffer
  54. ByteBuffer to Hex String
  55. ByteBuffer to String
  56. slice ByteBuffer
  57. Get a long integer from the byte buffer.
  58. Read a string from the ByteBuffer.
  59. ByteBuffer Skip
  60. Append bytes to a ByteBuffer.
  61. Allocate ByteBuffer in flush mode.
  62. Clear the ByteBuffer to be empty in flush mode.
  63. Check for a non null and full ByteBuffer.
  64. Check for an empty or null ByteBuffer.
  65. Flip the ByteBuffer to fill mode.
  66. Put data from one ByteBuffer into another, avoiding over/under flows
  67. Reads a null-terminated ('\0') string from the provided ByteBuffer.
  68. convert Byte Buffer To Array
  69. copy Byte Buffer
  70. create Direct Byte Buffer
  71. Allocates a new direct ByteBuffer with the specified size and returns it.
  72. Read a byte channel until all input is exhausted, returning the results in a byte buffer.
  73. Slices a part of the specified ByteBuffer into a new byte buffer and returns it.
  74. Ensure the byte buffer's capacity.
  75. Reads data from the ByteBuffer, inserting it into the StringBuffer, until a full line is read.
  76. Transfers as much data as possible to and from ByteBuffer.
  77. ByteBuffer as Readable Byte Channel
  78. Creates a new, read-only byte buffer that shares this buffer's content.
  79. ByteBuffer as Writable Byte Channel
  80. Transfer bytes from one ByteBuffer to another.
  81. Return the thread local byte buffer.
  82. Destroy the given ByteBuffer if possible
  83. ByteBuffer advance Position
  84. Slice a portion of the ByteBuffer while preserving the buffers position and limit.
  85. ByteBuffer to Utf String
  86. byte Buffer To Object
  87. Object serialized to ByteBuffer
  88. Wraps data into a ByteBuffer prefixed by its length.
  89. ByteBuffer big Endian Allocate
  90. ByteBuffer big Endian Wrap
  91. Dump the given ByteBuffer 's bytes to a file.
  92. This is a relative bulk get method for ByteBuffer that returns the array of bytes gotten.
  93. This is a relative get String method for ByteBuffer because it doesn't have one (but should!).
  94. This is a relative method for getting a single unsigned byte from ByteBuffer.
  95. getting 2 unsigned bytes from ByteBuffer.
  96. mapping an entire File into a ByteBuffer .
  97. mapping an entire File into a ByteBuffer read only.
  98. mapping an entire File into a ByteBuffer for write
  99. Puts a String 's bytes in the character set starting at the ByteBuffer 's current position.
  100. Skip a specified number of bytes, i.e., advance the buffer's position.
  101. get String from ByteBuffer
  102. ByteBuffer from File
  103. ByteBuffer from Stream
  104. ByteBuffer to File
  105. ByteBuffer to Stream
  106. corrupt a list of ByteBuffer
  107. duplicate a list of ByteBuffer
  108. flip a list of ByteBuffer
  109. read ReadableByteChannel
  110. Checks the first 16 bytes of the given ByteBuffer for a 0 byte.
  111. Reads the contents of the given File into a ByteBuffer.
  112. in ByteBuffer Little Endian Order
  113. in ByteBuffer Native Byte Order
  114. read Byte from ByteBuffer
  115. Copy the remaining content of a ByteBuffer in to a new non-direct ByteBuffer .
  116. Copy the remaining content of a ByteBuffer in to a new array.
  117. String to Byte Buffer
  118. extract Null Terminated String from ByteBuffer
  119. Are the bytes starting from pos equal to the target Bytes in ByteBuffer?
  120. ByteBuffer to String from offset
  121. Default byte buffer expansion.
  122. ByteBuffer capacity Remaining
  123. Copy the source ByteBuffer into the target ByteBuffer at the current position in the target
  124. Copy the data into the ByteBuffer, resizing it if needed
  125. extend ByteBuffer
  126. Get bytes out of a ByteBuffer, moves the buffer position to where the bytes finished
  127. Add the character to the ByteBuffer, extending the buffer if needed
  128. put byte to ByteBuffer
  129. Add the int to the ByteBuffer, extending the buffer if needed
  130. ByteBuffer from Input Stream
  131. ByteBuffer compare To another ByteBuffer
  132. Allocate ByteBuffer.
  133. Gather ByteBuffers to one ByteBuffer.
  134. Judge ByteBuffers have remaining bytes.
  135. Increase ByteBuffer's capacity.
  136. This method is the equivalent of System.arraycopy But, instead of 2 arrays, it takes 2 ByteBuffers.
  137. copy ByteBuffer by length
  138. Copies the contents in the specified ByteBuffer , but not any of its attributes (e.g.
  139. Converts the contents of the specified ByteBuffer to a string, which is formatted similarly to the output of the Arrays#toString() method.
  140. bytes in ByteBuffer To Hex
  141. Compares a portion of two ByteBuffers.
  142. Writes a single byte as raw character data into the specified buffer.
  143. Writes the specified integer value as an ASCII string into the specified byte buffer.
  144. aggregate ByteBuffer
  145. total Length of list of ByteBuffer
  146. Concatenates one or more byte buffers to one large buffer.
  147. Performs a deep copy on a byte buffer.
  148. Returns the subset of a byte buffer, using the given offset and length.
  149. is ByteBuffer Empty
  150. Reads a file and puts its content into a byte buffer, using the given length and offset.
  151. Maps a portion of a file to memory and returns the mapped read-only byte buffer using the given offset and length.
  152. Maps a portion of a file to memory and returns the mapped writable byte buffer using the given offset and length.
  153. Writes the remaining bytes of a byte buffer to the given file.
  154. transfer one ByteBuffer to another ByteBuffer
  155. transfer Remaining ByteBuffer
  156. get Unsigned Int From ByteBuffer
  157. get Unsigned Short From ByteBuffer
  158. deserialize ByteBuffer
  159. serialize ByteBuffer
  160. Returns an InputStream wrapping a ByteBuffer.
  161. Puts the 24 least significant bits of value in to the byte buffer, big endian.
  162. Returns a slice of the bytebuffer starting at mark with given length.
  163. Returns a slice of the bytebuffer starting at the current position and with the given length.
  164. Reads a 24 bit length field and returns a ByteBuffer corresponding to the array of bytes of this length following the length field.
  165. copy content of src to dest, using ByteBuffer#compact() when inner ByteBuffer was not fully drained
  166. copy content of src to dest, using ByteBuffer#clear() to maker user byteBuffer was fully drained, while this may cause more SYSTEM CALLS
  167. Buffer to Array
  168. put data to buffer
  169. Fill buffer with zeros from position to remaining
  170. Reallocate a buffer.
  171. Gets a String that is the same length as the given string starting at the buffer's current position, advances the position by the same length, and compares the two strings for equality.
  172. Returns the index within this buffer of the first occurrence of the specified pattern buffer.
  173. Expands buffer to the given size unless it is already as big or bigger.
  174. split input buffer in chunks of maxsize.
  175. Sets all bits in the given remaining byte range to 0 in ByteBuffer.
  176. Sets all bits in the given byte range to 0 in ByteBuffer.
  177. Sets all bits in the given byte range to 1 in ByteBuffer.
  178. Searches for a pattern of bytes in the given ByteBuffer starting at the given offset.
  179. Moves the position of the given ByteBuffer the given count from the current position.
  180. Read a 3 byte int from a ByteBuffer
  181. Reads an array of bytes from the given ByteBuffer
  182. get Int from ByteBuffer by ByteOrder
  183. Read an unsigned byte from a ByteBuffer
  184. Read an unsigned short from a ByteBuffer
  185. Read an unsigned variable length int from a ByteBuffer
  186. Matches a pattern of bytes against the given ByteBuffer starting at the given offset.
  187. Put an integer into the given ByteBuffer at the given offset as a 3-byte integer.
  188. Writes an int at the current position in the given ByteBuffer, using the given ByteOrder
  189. Sets all bytes in the given byte range to the given byte value in ByteBuffer.
  190. Convert a byte buffer to a hexadecimal string for display
  191. Writes a sequence of hexidecimal values into the given buffer, where every two characters represent one byte value.
  192. allocate Byte Buffer
  193. Merge long value from two byte buffer.
  194. Merge int value from two byte buffer.
  195. Merge short value from two byte buffer.
  196. Split int value into two byte buffer.
  197. Split long value into two byte buffer.
  198. Split short value into two byte buffer.
  199. Create a padding byte array buffer.
  200. Reads an UTF8 string from a byte buffer.
  201. Reads an integer written into the byte buffer as one of various bit sizes.
  202. Writes an UTF8 string to a byte buffer.
  203. Writes an integer into the byte buffer using the least possible amount of bits.
  204. Returns an output stream for a ByteBuffer.
  205. Returns an input stream for a ByteBuffer.
  206. Convert the content of a byte buffer to a string
  207. Convert the content of a byte buffer to a Base64 encoded string
  208. read U32 from ByteBuffer