Skip to content

Tag Archives: Java-NIO package

A Buffer object can be termed as a container for a fixed amount of data. The buffer acts as a storing box, or temporary staging… Read More
java.nio.file.Paths class contains static methods for converting path string or URI into Path. Class declaration : public final class Paths extends Object Methods: Method Description… Read More
The java.nio.file.SimpleFileVisitor Class is used to visit all the files in a directory and to re-throw I/O exceptions whenever an I/O error occurs. Class declaration… Read More
The java.nio.file.attribute.FileTime class is used to get a value representing this file’s timestamp i.e, the time when this file was last modified, accessed, or created.… Read More
Java IO(Input/Output) is used to perform read and write operations. The java.io package contains all the classes required for input and output operation. Whereas, Java… Read More
Java IO(Input/Output) is used to perform read and write operations. The java.io package contains all the classes required for input and output operation. Whereas, Java… Read More
The reset() method of java.nio.FloatBuffer Class is used to reset the position of this buffer to a position which was previously-marked. In this, the marked… Read More
The limit() method of java.nio.FloatBuffer Class is used to modify this FloatBuffer’s limit. This method takes the limit to be set as the parameter and… Read More
The mark() method of java.nio.FloatBuffer Class is used to mark the current position of this FloatBuffer as the mark of this buffer. Syntax: public final… Read More
The reset() method of java.nio.DoubleBuffer Class is used to reset the position of this buffer to a position which was previously-marked. In this, neither a… Read More
The rewind() method of java.nio.FloatBuffer Class is used to rewind this buffer. This method sets the position to zero and limit remains unaffected and if… Read More
The clear() method of java.nio.FloatBuffer Class is used to clear this buffer. This method set the position and limit equal to zero and capacity respectively… Read More
The rewind() method of java.nio.DoubleBuffer Class is used to rewind this buffer. This method sets the position to zero and the limit remains unaffected and… Read More
The rewind() method of java.nio.LongBuffer Class is used to rewind this buffer. By rewinding this Buffer, the following actions are taken: Current position is set… Read More
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… Read More