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
the path to the file
obj
,
Class<V>
the Class object corresponding to the file attribute view
type
,
LinkOption...
options indicating how symbolic links are handled
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
the path to the file
file
,
Class<A>
the Class of the file attributes required to read
type
,
LinkOption...
options indicating how symbolic links are handled
options
)

Overrides sun.nio.fs.UnixFileSystemProvider.readAttributes.

Reads a file's attributes as a bulk operation.
Inherited from sun.nio.fs.UnixFileSystemProvider:
chaincheckAccesscheckPathcopycreateDirectorycreateLinkcreateSymbolicLinkexistsgetFileStoregetFileSystemgetPathgetSchemegetSunPathForSocketFileimplDeleteisHiddenisSameFilemovenewAsynchronousFileChannelnewByteChannelnewDirectoryStreamnewFileChannelnewFileSystemreadAttributesIfExistsreadSymbolicLinktheFileSystem

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.

Parameters
<V>
The FileAttributeView type
obj:Path

the path to the file

type:Class<V>

the Class object corresponding to the file attribute view

options:LinkOption[]

options indicating how symbolic links are handled

Returns:V

a file attribute view of the specified type, or null if the attribute view type is not available

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.

Parameters
<A>
The BasicFileAttributes type
file:Path

the path to the file

type:Class<A>

the Class of the file attributes required to read

options:LinkOption[]

options indicating how symbolic links are handled

Returns:A

the file attributes

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