Stay organized with collections
Save and categorize content based on your preferences.
java.nio
Classes
Exceptions
BufferOverflowException |
Unchecked exception thrown when a relative put operation reaches the target buffer's limit.
|
BufferUnderflowException |
Unchecked exception thrown when a relative get operation reaches the source buffer's limit.
|
InvalidMarkException |
Unchecked exception thrown when an attempt is made to reset a buffer when its mark is not defined.
|
ReadOnlyBufferException |
Unchecked exception thrown when a content-mutation method such as put or compact is invoked upon a read-only buffer.
|
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# java.nio\n========\n\nClasses\n-------\n\n|-----------------------------------------------------------------|-------------------------------------------------------------------------|\n| [Buffer](/reference/kotlin/java/nio/Buffer) | A container for data of a specific primitive type. |\n| [ByteBuffer](/reference/kotlin/java/nio/ByteBuffer) | A byte buffer. |\n| [ByteOrder](/reference/kotlin/java/nio/ByteOrder) | A typesafe enumeration for byte orders. |\n| [CharBuffer](/reference/kotlin/java/nio/CharBuffer) | A char buffer. |\n| [DoubleBuffer](/reference/kotlin/java/nio/DoubleBuffer) | A double buffer. |\n| [FloatBuffer](/reference/kotlin/java/nio/FloatBuffer) | A float buffer. |\n| [IntBuffer](/reference/kotlin/java/nio/IntBuffer) | An int buffer. |\n| [LongBuffer](/reference/kotlin/java/nio/LongBuffer) | A long buffer. |\n| [MappedByteBuffer](/reference/kotlin/java/nio/MappedByteBuffer) | A direct byte buffer whose content is a memory-mapped region of a file. |\n| [ShortBuffer](/reference/kotlin/java/nio/ShortBuffer) | A short buffer. |\n\nExceptions\n----------\n\n|---------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------|\n| [BufferOverflowException](/reference/kotlin/java/nio/BufferOverflowException) | Unchecked exception thrown when a relative *put* operation reaches the target buffer's limit. |\n| [BufferUnderflowException](/reference/kotlin/java/nio/BufferUnderflowException) | Unchecked exception thrown when a relative *get* operation reaches the source buffer's limit. |\n| [InvalidMarkException](/reference/kotlin/java/nio/InvalidMarkException) | Unchecked exception thrown when an attempt is made to reset a buffer when its mark is not defined. |\n| [ReadOnlyBufferException](/reference/kotlin/java/nio/ReadOnlyBufferException) | Unchecked exception thrown when a content-mutation method such as put or compact is invoked upon a read-only buffer. |"]]