Courses
Tutorials
Interview Prep
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
Similar Topics
Web Technologies
32.1K+ articles
DSA
20.4K+ articles
Python
19.6K+ articles
Experiences
15.8K+ articles
Interview Experiences
14.5K+ articles
School Learning
11.1K+ articles
Java
9.4K+ articles
Misc
7.7K+ articles
Java-Functions
4.2K+ articles
Java-NIO package
230+ articles
Java-ShortBuffer
22 posts
Recent Articles
Popular Articles
java.nio.ShortBuffer Class in Java
Last Updated: 23 July 2025
ShortBuffer holds a sequence of integer values to be used in an I/O operation. The ShortBuffer class provides the following four categories of operations upon long buffers...
read more
Java
Picked
Java-ShortBuffer
Java-NIO package
ShortBuffer mark() method in Java with Examples
Last Updated: 28 August 2019
The mark() method of java.nio.ShortBuffer Class is used to mark the current position of this ShortBuffer as the mark of this buffer.Syntax:public ShortBuffer mark()Paramet...
read more
Java
Java-Functions
Java-ShortBuffer
Java-NIO package
ShortBuffer rewind() method in Java with Examples
Last Updated: 28 August 2019
The rewind() method of java.nio.ShortBuffer Class is used to rewind this buffer. By rewinding this Buffer, the following actions are taken:Current position is set to zerot...
read more
Java
Java-Functions
Java-ShortBuffer
Java-NIO package
ShortBuffer reset() method in Java with Examples
Last Updated: 28 August 2019
The reset() method of java.nio.ShortBuffer Class is used to reset this buffer's position to the previously-marked position. The mark's value remain unchanged during this p...
read more
Java
Java-Functions
Java-ShortBuffer
Java-NIO package
ShortBuffer limit() method in Java with Examples
Last Updated: 28 August 2019
The limit() method of java.nio.ShortBuffer Class is used to modify this ShortBuffer's limit. This method takes the limit to be set as the parameter and sets that as the ne...
read more
Java
Java-Functions
Java-ShortBuffer
Java-NIO package
ShortBuffer flip() methods in Java with Examples
Last Updated: 26 August 2019
The flip() method of java.nio.ShortBuffer Class is used to flip this buffer. By flipping this buffer, it meant that the buffer will be trimmed to the current position and ...
read more
Java
Java-Functions
Java-ShortBuffer
Java-NIO package
ShortBuffer clear() methods in Java with Examples
Last Updated: 26 August 2019
The clear() method of java.nio.ShortBuffer Class is used to clear this buffer. While clearing this buffer following changes are done:the current position is set to zerothe...
read more
Java
Java-Functions
Java-ShortBuffer
Java-NIO package
ShortBuffer toString() method in Java with Examples
Last Updated: 13 February 2023
The toString() method in java.nio.ShortBuffer is used to return a string summarizing the state of this buffer. Syntax:public String toString()Return Value:The method retur...
read more
Misc
Java
Java-Functions
Java-ShortBuffer
Java-NIO package
ShortBuffer slice() method in Java with Examples
Last Updated: 05 August 2021
The slice() method of java.nio.ShortBuffer Class is used to create a new short buffer whose content is a shared subsequence of this buffer's content.The content of the new...
read more
Misc
Java
Java-Functions
Java-ShortBuffer
Java-NIO package
ShortBuffer order() Method in Java with Examples
Last Updated: 20 September 2018
The order() method of java.nio.ShortBuffer is used to retrieve the buffer's byte order.The byte order of a short buffer created by allocation or by wrapping an existing sh...
read more
Misc
Java
Java-Functions
Java-ShortBuffer
Java-NIO package
ShortBuffer isDirect() Method in Java with Examples
Last Updated: 17 June 2019
The isDirect() method of java.nio.ShortBuffer is used to check whether or not this short buffer is direct.Syntax:public abstract boolean isDirect()Return Value: The method...
read more
Misc
Java
Java-Functions
Java-ShortBuffer
Java-NIO package
ShortBuffer array() Method in Java with Examples
Last Updated: 13 February 2023
The array() method of java.nio.ShortBuffer is used to return the short array that backs this buffer(optional). Modifications to this buffer's content will cause the return...
read more
Misc
Java
Java-Functions
Java-ShortBuffer
Java-NIO package
ShortBuffer hashCode() Method in Java with Examples
Last Updated: 17 June 2019
The hashCode() method of java.nio.ShortBuffer is used to return the hash code for a particular buffer.The hash code of a short buffer depends only upon its remaining eleme...
read more
Misc
Java
Java-Functions
Java-ShortBuffer
Java-NIO package
ShortBuffer hasArray() method in Java with Examples
Last Updated: 20 September 2018
The hasArray() method of java.nio.ShortBuffer class is used to ensure whether or not the given buffer is backed by an accessible float array. It returns true if there is a...
read more
Misc
Java
Java-Functions
Java-ShortBuffer
Java-NIO package
ShortBuffer duplicate() method in Java With Examples
Last Updated: 26 July 2022
The duplicate() method of java.nio.ShortBuffer Class creates a new short buffer that shares this buffer's content. The content of the new buffer will be that of this buffe...
read more
Misc
Java
Java-Functions
Java-ShortBuffer
Java-NIO package
1
2