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

pack-priv Class LinuxFileSystem

extends UnixFileSystem
Class Inheritance
Imports
java.nio.file.FileStore, .WatchService, java.io.IOException, java.util.ArrayList, .Collections, .HashSet, .List, .Set

Linux implementation of FileSystem

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv void
bufferedCopy(int dst, int src, long address, int size, long addressToPollForCancel)

Overrides sun.nio.fs.UnixFileSystem.bufferedCopy.

Copies data between file descriptors src and dst using an intermediate temporary direct buffer.

pack-priv void
copyNonPosixAttributes(int ofd, int nfd)

Overrides sun.nio.fs.UnixFileSystem.copyNonPosixAttributes.

Copies non-POSIX attributes from the source to target file.

pack-priv int
directCopy(int dst, int src, long addressToPollForCancel)

Overrides sun.nio.fs.UnixFileSystem.directCopy.

Copies data between file descriptors src and dst using a platform-specific function or system call possibly having kernel support.

pack-priv FileStore
getFileStore(UnixMountEntry entry)

Implements abstract sun.nio.fs.UnixFileSystem.getFileStore.

Returns a FileStore to represent the file system for the given mount mount.

pack-priv List<UnixMountEntry>
getMountEntries(String fstab)

Returns object to iterate over the mount entries in the given fstab file.

pack-priv List<UnixMountEntry>
getMountEntries()

Implements abstract sun.nio.fs.UnixFileSystem.getMountEntries.

Returns object to iterate over the mount entries in /etc/mtab

public WatchService
newWatchService()

Implements abstract java.nio.file.FileSystem.newWatchService.

Constructs a new WatchService (optional operation).

public Set<String>
supportedFileAttributeViews()

Implements abstract java.nio.file.FileSystem.supportedFileAttributeViews.

Returns the set of the names of the file attribute views supported by this FileSystem.

Inherited from sun.nio.fs.UnixFileSystem:
closecompilePathMatchPatterncopycopyFiledefaultDirectoryensureEmptyDirgetFileStoresgetPathgetPathMatchergetRootDirectoriesgetSeparatorgetUserPrincipalLookupServiceisCaseInsensitiveAndPreservingisOpenisReadOnlymoveneedToResolveAgainstDefaultDirectoryproviderrootDirectorystandardFileAttributeViews

Constructor Detail

LinuxFileSystemback to summary
pack-priv LinuxFileSystem(UnixFileSystemProvider provider, String dir)

Method Detail

bufferedCopyback to summary
pack-priv void bufferedCopy(int dst, int src, long address, int size, long addressToPollForCancel) throws UnixException

Overrides sun.nio.fs.UnixFileSystem.bufferedCopy.

Doc from sun.nio.fs.UnixFileSystem.bufferedCopy.

Copies data between file descriptors src and dst using an intermediate temporary direct buffer.

Annotations
@Override
copyNonPosixAttributesback to summary
pack-priv void copyNonPosixAttributes(int ofd, int nfd)

Overrides sun.nio.fs.UnixFileSystem.copyNonPosixAttributes.

Doc from sun.nio.fs.UnixFileSystem.copyNonPosixAttributes.

Copies non-POSIX attributes from the source to target file. Copying a file preserving attributes, or moving a file, will preserve the file owner/group/permissions/timestamps but it does not preserve other non-POSIX attributes. This method is invoked by the copy or move operation to preserve these attributes. It should copy extended attributes, ACLs, or other attributes.

Annotations
@Override
directCopyback to summary
pack-priv int directCopy(int dst, int src, long addressToPollForCancel) throws UnixException

Overrides sun.nio.fs.UnixFileSystem.directCopy.

Doc from sun.nio.fs.UnixFileSystem.directCopy.

Copies data between file descriptors src and dst using a platform-specific function or system call possibly having kernel support.

Annotations
@Override
getFileStoreback to summary
pack-priv FileStore getFileStore(UnixMountEntry entry) throws IOException

Implements abstract sun.nio.fs.UnixFileSystem.getFileStore.

Doc from sun.nio.fs.UnixFileSystem.getFileStore.

Returns a FileStore to represent the file system for the given mount mount.

Annotations
@Override
getMountEntriesback to summary
pack-priv List<UnixMountEntry> getMountEntries(String fstab)

Returns object to iterate over the mount entries in the given fstab file.

getMountEntriesback to summary
pack-priv List<UnixMountEntry> getMountEntries()

Implements abstract sun.nio.fs.UnixFileSystem.getMountEntries.

Returns object to iterate over the mount entries in /etc/mtab

Annotations
@Override
newWatchServiceback to summary
public WatchService newWatchService() throws IOException

Implements abstract java.nio.file.FileSystem.newWatchService.

Doc from java.nio.file.FileSystem.newWatchService.

Constructs a new WatchService (optional operation).

This method constructs a new watch service that may be used to watch registered objects for changes and events.

Annotations
@Override
Exceptions
IOException:
If an I/O error occurs
supportedFileAttributeViewsback to summary
public Set<String> supportedFileAttributeViews()

Implements abstract java.nio.file.FileSystem.supportedFileAttributeViews.

Doc from java.nio.file.FileSystem.supportedFileAttributeViews.

Returns the set of the names of the file attribute views supported by this FileSystem.

The BasicFileAttributeView is required to be supported and therefore the set contains at least one element, "basic".

The supportsFileAttributeView(String) method may be used to test if an underlying FileStore supports the file attributes identified by a file attribute view.

Annotations
@Override
sun.nio.fs back to summary

private Class LinuxFileSystem.SupportedFileFileAttributeViewsHolder

extends Object
Class Inheritance
  • java.lang.Object
  • sun.nio.fs.LinuxFileSystem.SupportedFileFileAttributeViewsHolder

Field Summary

Modifier and TypeField and Description
pack-priv static final Set<String>

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
private static Set<String>
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

supportedFileAttributeViewsback to summary
pack-priv static final Set<String> supportedFileAttributeViews

Constructor Detail

SupportedFileFileAttributeViewsHolderback to summary
private SupportedFileFileAttributeViewsHolder()

Method Detail

supportedFileAttributeViewsback to summary
private static Set<String> supportedFileAttributeViews()