public abstract class FullFileSystem extends FileSystem
| Constructor and Description |
|---|
FullFileSystem() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
afterUnmounting()
Is called after the file system has been unmounted successfully.
|
abstract void |
beforeMounting(java.lang.String mountPath)
Is called directly before the file system is mounted
|
abstract void |
beforeUnmounting()
Is called directly before the file system is unmounted
|
abstract void |
createHardLink(java.lang.String source,
java.lang.String destination)
Creates a hard link at source pointing to destination.
|
abstract void |
createSymbolicLink(java.lang.String source,
java.lang.String destination)
Creates a symbolic link at source pointing to destination.
|
abstract int |
getFilesFreeCount()
Returns the number of files which may be created.
|
abstract int |
getMaxPathLength()
Returns the maximum path length.
|
abstract int |
getTotalFilesCount()
Returns the total number of files on the volume.
|
abstract UnixPermissions |
getUnixPermissions(java.lang.String path)
Returns the unix permissions
|
abstract int |
getVolumeSerialNumber()
Returns a volume serial number
|
abstract WindowsAttributes |
getWindowsAttributes(java.lang.String path)
Returns the windows attributes.
|
abstract boolean |
isCompressed()
Returns true if the file system is compressed
|
abstract boolean |
isReadOnly()
Returns true if the file system is read only
|
abstract java.lang.Iterable<ExtendedAttribute> |
listExtendedAttributes(java.lang.String path)
Lists the extended attributes of a path.
|
abstract void |
lockFile(FileHandle handle,
long byteOffset,
long length)
Locks a file in the specified range for every write access except for the File Handle handle.
|
abstract void |
removeExtendedAttribute(java.lang.String path,
java.lang.String attributeName)
Sets or adds extended attributes.
|
abstract void |
setExtendedAttribute(java.lang.String path,
ExtendedAttribute attribute)
Sets or adds extended attribute.
|
abstract void |
setUnixPermissions(java.lang.String path,
UnixPermissions perms)
Sets the unix permissions for a file/directory.
|
abstract void |
setWindowsAttributes(java.lang.String path,
WindowsAttributes windowsAttributes)
Sets the windows attributes.
|
abstract boolean |
supportsUnicodeFilenames()
Returns true if the file system supports unicode filenames.
|
abstract void |
unlockFile(FileHandle handle,
long byteOffset,
long length)
Unlocks a file in the specified range.
|
close, createDirectory, createFile, delete, deleteDirectoryRecursively, deleteFile, flush, getBlockSize, getExtendedAttribute, getFileMetaData, getFileSystemName, getFreeBlockAvailableCount, getFreeBlockCount, getMountPath, getNumberOfFilesInDirectory, getTotalBlockCount, getVolumeName, isCaseSensitive, listDirectory, openFile, pathExists, read, rename, setCreationTime, setLastAccessTime, setLastModificationTime, setLength, writepublic abstract void createSymbolicLink(java.lang.String source,
java.lang.String destination)
throws PathNotFoundException,
SourceAlreadyExistsException,
AccessDeniedException,
UnsupportedFeatureException
FileSystemcreateSymbolicLink in class FileSystemsource - the sourcedestination - the destinationPathNotFoundException - the parent directory (of source) could not be foundSourceAlreadyExistsException - the source does already existAccessDeniedException - the access was deniedUnsupportedFeatureException - the feature is unsupportedhttps://en.wikipedia.org/wiki/Symbolic_linkpublic abstract void createHardLink(java.lang.String source,
java.lang.String destination)
throws PathNotFoundException,
SourceAlreadyExistsException,
AccessDeniedException,
UnsupportedFeatureException
FileSystemcreateHardLink in class FileSystemsource - the sourcedestination - the destinationPathNotFoundException - the parent directory could not be foundSourceAlreadyExistsException - the source does already existAccessDeniedException - the access was deniedUnsupportedFeatureException - the feature is unsupportedhttps://en.wikipedia.org/wiki/Hard_linkpublic abstract int getMaxPathLength()
FileSystemgetMaxPathLength in class FileSystempublic abstract int getFilesFreeCount()
FileSystemgetFilesFreeCount in class FileSystempublic abstract int getTotalFilesCount()
FileSystemgetTotalFilesCount in class FileSystempublic abstract void setUnixPermissions(java.lang.String path,
UnixPermissions perms)
throws PathNotFoundException,
AccessDeniedException,
UnsupportedFeatureException
FileSystemsetUnixPermissions in class FileSystempath - the pathperms - the permissionsPathNotFoundException - the path was not foundAccessDeniedException - the access is deniedUnsupportedFeatureException - the feature is unsupportedpublic abstract UnixPermissions getUnixPermissions(java.lang.String path) throws PathNotFoundException
FileSystemgetUnixPermissions in class FileSystempath - the pathPathNotFoundException - the path was not foundpublic abstract void setWindowsAttributes(java.lang.String path,
WindowsAttributes windowsAttributes)
throws PathNotFoundException,
AccessDeniedException,
UnsupportedFeatureException
FileSystemsetWindowsAttributes in class FileSystempath - the pathwindowsAttributes - the windows attributesPathNotFoundException - the path was not foundAccessDeniedException - the access is deniedUnsupportedFeatureException - the feature is not supportedpublic abstract WindowsAttributes getWindowsAttributes(java.lang.String path) throws PathNotFoundException, AccessDeniedException, UnsupportedFeatureException
FileSystemgetWindowsAttributes in class FileSystempath - the pathPathNotFoundException - the path was not foundAccessDeniedException - the access is deniedUnsupportedFeatureException - the feature is not supportedpublic abstract void lockFile(FileHandle handle, long byteOffset, long length) throws PathNotFoundException, AccessDeniedException, NotAFileException, UnsupportedFeatureException, AlreadyLockedException
FileSystemlockFile in class FileSystemhandle - the file handlebyteOffset - the byte offsetlength - the lengthPathNotFoundException - the path was not foundAccessDeniedException - the access is deniedNotAFileException - the path is not a fileUnsupportedFeatureException - the feature is not supportedAlreadyLockedException - parts of the specified range are already lockedpublic abstract void unlockFile(FileHandle handle, long byteOffset, long length) throws PathNotFoundException, AccessDeniedException, NotAFileException, UnsupportedFeatureException
FileSystemunlockFile in class FileSystemhandle - the file handlebyteOffset - the byte offsetlength - the lengthPathNotFoundException - the path was not foundAccessDeniedException - the access is deniedNotAFileException - the path is not a fileUnsupportedFeatureException - the feature is not supportedpublic abstract boolean supportsUnicodeFilenames()
FileSystemsupportsUnicodeFilenames in class FileSystempublic abstract boolean isCompressed()
FileSystemisCompressed in class FileSystempublic abstract int getVolumeSerialNumber()
FileSystemgetVolumeSerialNumber in class FileSystempublic abstract boolean isReadOnly()
FileSystemisReadOnly in class FileSystempublic abstract java.lang.Iterable<ExtendedAttribute> listExtendedAttributes(java.lang.String path) throws PathNotFoundException, AccessDeniedException, UnsupportedFeatureException
FileSystemlistExtendedAttributes in class FileSystempath - the pathPathNotFoundException - the path was not foundAccessDeniedException - the access is deniedUnsupportedFeatureException - the feature is not supportedpublic abstract void setExtendedAttribute(java.lang.String path,
ExtendedAttribute attribute)
throws PathNotFoundException,
AccessDeniedException,
UnsupportedFeatureException
FileSystemsetExtendedAttribute in class FileSystempath - the pathattribute - the attribute to add/setPathNotFoundException - the path was not foundAccessDeniedException - the access is deniedUnsupportedFeatureException - the feature is not supportedpublic abstract void removeExtendedAttribute(java.lang.String path,
java.lang.String attributeName)
throws PathNotFoundException,
AccessDeniedException,
UnsupportedFeatureException,
AttributeNotFoundException
FileSystemremoveExtendedAttribute in class FileSystempath - the pathattributeName - the attribute namePathNotFoundException - the path was not foundAccessDeniedException - the access is deniedUnsupportedFeatureException - the feature is not supportedAttributeNotFoundException - the specified attribute was not foundpublic abstract void beforeMounting(java.lang.String mountPath)
FileSystembeforeMounting in class FileSystemmountPath - the mount pathpublic abstract void beforeUnmounting()
FileSystembeforeUnmounting in class FileSystempublic abstract void afterUnmounting()
FileSystemafterUnmounting in class FileSystem