Tag Archives: java.nio.file package

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 getTotalSpace() method of a FileStore class is used to return total size of the file store, in bytes. This method returns this total size… Read More
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.… Read More
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… Read More
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… Read More
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… Read More
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.… Read More
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 More
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… Read More
The getUnallocatedSpace() method of a FileStore class is used to get the number of unallocated bytes in the file store. This method is usefull to… Read More
The type() method of a FileStore class is used to return the type of this file store and format of the returned string highly implementation-specific.… Read More
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… Read More
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 by… Read More
isReadable() method of java.nio.file.Files help us to check whether Java virtual machine has appropriate privileges that would allow it to open this file for reading… Read More
getFileStore() method of java.nio.file.Files help us to return the FileStore object which represents the file store where a file is located. Once you get a… Read More