APIdia Launch Partner
Top Description Constructors Methods
sun.nio.fs

pack-priv Class LinuxFileSystemProvider

extends UnixFileSystemProvider
Class Inheritance
Imports
java.nio.file.*, java.nio.file.attribute.*, java.nio.file.spi.FileTypeDetector, java.io.IOException, jdk.internal.util.StaticProperty

Linux implementation of FileSystemProvider

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public <V extends FileAttributeView> V
getFileAttributeView(Path obj, Class<V> type, LinkOption... options)

Overrides sun.nio.fs.UnixFileSystemProvider.getFileAttributeView.

Returns a file attribute view of a given type.

public DynamicFileAttributeView
getFileAttributeView(Path obj, String name, LinkOption... options)

Overrides sun.nio.fs.UnixFileSystemProvider.getFileAttributeView.

Gets a DynamicFileAttributeView by name.

pack-priv LinuxFileStore
getFileStore(UnixPath path)

Implements abstract sun.nio.fs.UnixFileSystemProvider.getFileStore.

Returns a FileStore to represent the file system where the given file reside.

pack-priv FileTypeDetector
getFileTypeDetector()

Overrides sun.nio.fs.UnixFileSystemProvider.getFileTypeDetector.

Returns a FileTypeDetector for this platform.

pack-priv LinuxFileSystem
newFileSystem(String dir)

Implements abstract sun.nio.fs.UnixFileSystemProvider.newFileSystem.

Constructs a new file system using the given default directory.

public <A extends BasicFileAttributes> A
readAttributes(Path file, Class<A> type, LinkOption... options)

Overrides sun.nio.fs.UnixFileSystemProvider.readAttributes.

Reads a file's attributes as a bulk operation.

Inherited from sun.nio.fs.UnixFileSystemProvider:
chaincheckAccesscopycreateDirectorycreateLinkcreateSymbolicLinkexistsgetFileStoregetFileSystemgetPathgetSchemegetSunPathForSocketFileimplDeleteisExecutableisHiddenisReadableisSameFileisWritablemovenewAsynchronousFileChannelnewByteChannelnewDirectoryStreamnewFileChannelnewFileSystemreadAttributesIfExistsreadSymbolicLinktheFileSystem

Constructor Detail

LinuxFileSystemProviderback to summary
public LinuxFileSystemProvider()

Method Detail

getFileAttributeViewback to summary
public <V extends FileAttributeView> V getFileAttributeView(Path obj, Class<V> type, LinkOption... options)

Overrides sun.nio.fs.UnixFileSystemProvider.getFileAttributeView.

Doc from java.nio.file.spi.FileSystemProvider.getFileAttributeView.

Returns a file attribute view of a given type. This method works in exactly the manner specified by the Files#getFileAttributeView method.

Annotations
@Override
@SuppressWarnings:unchecked
getFileAttributeViewback to summary
public DynamicFileAttributeView getFileAttributeView(Path obj, String name, LinkOption... options)

Overrides sun.nio.fs.UnixFileSystemProvider.getFileAttributeView.

Doc from sun.nio.fs.AbstractFileSystemProvider.getFileAttributeView.

Gets a DynamicFileAttributeView by name. Returns null if the view is not available.

Annotations
@Override
getFileStoreback to summary
pack-priv LinuxFileStore getFileStore(UnixPath path) throws IOException

Implements abstract sun.nio.fs.UnixFileSystemProvider.getFileStore.

Doc from sun.nio.fs.UnixFileSystemProvider.getFileStore.

Returns a FileStore to represent the file system where the given file reside.

Annotations
@Override
getFileTypeDetectorback to summary
pack-priv FileTypeDetector getFileTypeDetector()

Overrides sun.nio.fs.UnixFileSystemProvider.getFileTypeDetector.

Doc from sun.nio.fs.UnixFileSystemProvider.getFileTypeDetector.

Returns a FileTypeDetector for this platform.

Annotations
@Override
newFileSystemback to summary
pack-priv LinuxFileSystem newFileSystem(String dir)

Implements abstract sun.nio.fs.UnixFileSystemProvider.newFileSystem.

Doc from sun.nio.fs.UnixFileSystemProvider.newFileSystem.

Constructs a new file system using the given default directory.

Annotations
@Override
readAttributesback to summary
public <A extends BasicFileAttributes> A readAttributes(Path file, Class<A> type, LinkOption... options) throws IOException

Overrides sun.nio.fs.UnixFileSystemProvider.readAttributes.

Doc from java.nio.file.spi.FileSystemProvider.readAttributes.

Reads a file's attributes as a bulk operation. This method works in exactly the manner specified by the Files#readAttributes(Path, Class, LinkOption[]) method.

Annotations
@Override
@SuppressWarnings:unchecked
Exceptions
IOException:
if an I/O error occurs