Tutorials
Courses
Data Structure
Java
Python
HTML
Interview Preparation
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
SQL
Web Development
System Design
Aptitude
GfG Premium
Similar Topics
Web Technologies
37.4K+ articles
DSA
22.8K+ articles
Python
21.3K+ articles
Experiences
16.6K+ articles
Java
10.8K+ articles
Java-Functions
4.2K+ articles
Java-Files
66+ articles
Java-Path
22+ articles
Java-FileStore
8+ articles
Java-FileSystem
4+ articles
java.nio.file package
43 posts
Recent Articles
Popular Articles
Files isExecutable() method in Java with Examples
Last Updated: 29 July 2019
isExecutable() method of java.nio.file.Files help us to check whether a file is executable. This method checks that a file exists on this path or not and if it exists then...
read more
Java
Java-Functions
java.nio.file package
Java-Files
Files size() method in Java with Examples
Last Updated: 14 April 2023
size() method of java.nio.file.Files help us to get the size of a file (in bytes). This method returns the file size, in bytes by taking the path of the file as a paramete...
read more
Java
Java-Functions
java.nio.file package
Java-Files
FileSystem getFileStores() Method in Java with Examples
Last Updated: 10 September 2019
The getFileStores() method of java.nio.file.FileSystem is used to return an iterable of FileStore object to iterate over the underlying file stores. The elements contained...
read more
Java
Java-Functions
java.nio.file package
FileStore getBlockSize() method in Java with Examples
Last Updated: 03 December 2019
The getBlockSize() method of a FileStore class is used to return the number of bytes per block in this file store Object. Every File storage is organized into discrete seq...
read more
Java
Java-Functions
java.nio.file package
Java-FileStore
FileStore getTotalSpace() method in Java with Examples
Last Updated: 03 December 2019
The getTotalSpace() method of a FileStore class is used to return total size of the file store, in bytes. This method returns this total size as a long value.Syntax:public...
read more
Java
Java-Functions
java.nio.file package
Java-FileStore
FileStore getUnallocatedSpace() method in Java with Examples
Last Updated: 12 December 2021
The getUnallocatedSpace() method of a FileStore class is used to get the number of unallocated bytes in the file store. This method is useful to check free space. This met...
read more
Java
Java-Functions
java.nio.file package
Java-FileStore
FileStore getUsableSpace() method in Java with Examples
Last Updated: 03 December 2019
The getUsableSpace() method of a FileStore class is used to return the number of bytes available to this Java virtual machine on the file store. This method is useful to c...
read more
Java
Java-Functions
java.nio.file package
Java-FileStore
FileStore name() method in Java with Examples
Last Updated: 03 December 2019
The name() method of a FileStore class is used to return the name of this file store as a String. The format of the name is typically the name of the storage pool or volum...
read more
Java
Java-Functions
java.nio.file package
Java-FileStore
FileStore isReadOnly() method in Java with Examples
Last Updated: 17 April 2023
The isReadOnly() method of a FileStore class is used to return true if this file store is read-only else false. A file store is called read-only if it does not support wri...
read more
Java
Java-Functions
java.nio.file package
Java-FileStore
FileStore type() method in Java with Examples
Last Updated: 16 March 2021
The type() method of a FileStore class is used to return the type of this file store and the format of the returned string highly implementation-specific.Syntax: public ab...
read more
Java
Java-Functions
java.nio.file package
Java-FileStore
FileSystem getRootDirectories() method in Java with Examples
Last Updated: 18 April 2023
The getRootDirectories() method of a FileSystem class is used to return an Iterator object to iterate over the paths of the root directories for this File System. A file s...
read more
Java
Java-Functions
java.nio.file package
Java-FileSystem
FileSystem getSeparator() method in Java with Examples
Last Updated: 02 August 2021
The getSeparator() method of a FileSystem class is used to return the name separator for this file system as a string. The name separator is used to separate names in a pa...
read more
Java
Java-Functions
java.nio.file package
Java-FileSystem
FileSystem isOpen() method in Java with Examples
Last Updated: 03 December 2019
The isOpen() method of a FileSystem class is used to return true if file system is open. This method is very helpful to know filesystem is open or not. File systems create...
read more
Java
Java-Functions
java.nio.file package
Java-FileSystem
FileSystem isReadOnly() method in Java with Examples
Last Updated: 03 December 2019
The isReadOnly() method of a FileSystem class is used to check whether or not this file system allows only read-only access to its file stores. If the file system allows o...
read more
Java
Java-Functions
java.nio.file package
Java-FileSystem
Introduction to Java NIO with Examples
Last Updated: 10 June 2020
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 NIO...
read more
Java
Write From Home
Java-NIO package
Java-IO package
Java-nio-charset package
java.nio.file package
1
2
3
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !