Java - (Nio|New I/O) Package

Java Conceptuel Diagram


The Java NIO model is the last and second IO and File System mechanism of Java. It's available since Java 7. Before, the IO model was based on Java - Java IO.


In NIO, you define a file or a directory by creating first a path object. On this object, you can do path operations (such as getParent). If you want to do File System operations, you need to use the method of the Files utility class.

For examples, see:


NIO is not uniquely bound to local IO and can perform remote IO operations through an channel object.

A channel represents an open connection to an entity such as a hardware device, a file, a network socket, or a program component that is capable of performing one or more distinct I/O operations, for example reading or writing.

Documentation / Reference

Discover More
Undraw File Manager Re Ms29
File System - Virtual File System (VFS)

A Virtual File System (VFS) is a interface between: an application or an operating system's kernel and a concrete file system (Local, SFTP, ...) The user/application may choose to switch from one...
Java Conceptuel Diagram
Java - File

in Java In the Java nio model, a file is uniquely identified by a path object. In , file instances represent file or directory names. with the nio library java/io/FileReaderFileReader...
Java Conceptuel Diagram
Java - File System

in Java The most file system abstraction are build on the concept of URI. Nio. See: File Object File...
Java Conceptuel Diagram
Java - File System - Path

in Java. The path is unique identifier of a file (directory) In nio, a Path instance represents a file or directory but doesn't access the file system (for instance in order to verify that a particular...
Java Conceptuel Diagram
Java - IO (Input/Output) - (File System|File|Console)

in Java: Ie File System Operations on file and directory Input / Output (IO) Operations (Input/Output - Read/Write) with stream Java has modeled a file system and IO operations: until Java...
Java Conceptuel Diagram
Java - IO - Byte Stream

Byte I/O Operations (Stream) in java Programs use byte streams to perform input and output of 8-bit bytes. All byte stream classes are descended from this two class: input stream to read byte or...
Java Fileiomethods
Java - IO - Connection (Stream and Channel)

in Java. In order to perform I/O operations (for example reading or writing), you need to perform a connection. In Java, this connection are modelled through: a stream ( package) or a channel...
Java Conceptuel Diagram
Java - Java IO

Java IO is the first IO model of Java. It provides for system input and output through data streams, serialization and the file system. See java/io/ With the advent of Java 7, the...
Java Conceptuel Diagram
Java - Resource

A resource abstraction is implemented in Java because a resource could be: in the file system, on any place on the classpath in a jar file or otherwise relative path: They are the default...
Java Conceptuel Diagram
Java - Service Provider Interface (SPI)

SPI is an extension mechanism that implements a service provider framework. See a whole simple example on gerardnico/simplespiGitHub The whole SPI concept is construct round the loading of new provider...

Share this page:
Follow us:
Task Runner