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, write
public abstract void createSymbolicLink(java.lang.String source, java.lang.String destination) throws PathNotFoundException, SourceAlreadyExistsException, AccessDeniedException, UnsupportedFeatureException
FileSystem
createSymbolicLink
in class FileSystem
source
- 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_link
public abstract void createHardLink(java.lang.String source, java.lang.String destination) throws PathNotFoundException, SourceAlreadyExistsException, AccessDeniedException, UnsupportedFeatureException
FileSystem
createHardLink
in class FileSystem
source
- 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_link
public abstract int getMaxPathLength()
FileSystem
getMaxPathLength
in class FileSystem
public abstract int getFilesFreeCount()
FileSystem
getFilesFreeCount
in class FileSystem
public abstract int getTotalFilesCount()
FileSystem
getTotalFilesCount
in class FileSystem
public abstract void setUnixPermissions(java.lang.String path, UnixPermissions perms) throws PathNotFoundException, AccessDeniedException, UnsupportedFeatureException
FileSystem
setUnixPermissions
in class FileSystem
path
- 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
FileSystem
getUnixPermissions
in class FileSystem
path
- the pathPathNotFoundException
- the path was not foundpublic abstract void setWindowsAttributes(java.lang.String path, WindowsAttributes windowsAttributes) throws PathNotFoundException, AccessDeniedException, UnsupportedFeatureException
FileSystem
setWindowsAttributes
in class FileSystem
path
- 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
FileSystem
getWindowsAttributes
in class FileSystem
path
- 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
FileSystem
lockFile
in class FileSystem
handle
- 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
FileSystem
unlockFile
in class FileSystem
handle
- 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()
FileSystem
supportsUnicodeFilenames
in class FileSystem
public abstract boolean isCompressed()
FileSystem
isCompressed
in class FileSystem
public abstract int getVolumeSerialNumber()
FileSystem
getVolumeSerialNumber
in class FileSystem
public abstract boolean isReadOnly()
FileSystem
isReadOnly
in class FileSystem
public abstract java.lang.Iterable<ExtendedAttribute> listExtendedAttributes(java.lang.String path) throws PathNotFoundException, AccessDeniedException, UnsupportedFeatureException
FileSystem
listExtendedAttributes
in class FileSystem
path
- 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
FileSystem
setExtendedAttribute
in class FileSystem
path
- 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
FileSystem
removeExtendedAttribute
in class FileSystem
path
- 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)
FileSystem
beforeMounting
in class FileSystem
mountPath
- the mount pathpublic abstract void beforeUnmounting()
FileSystem
beforeUnmounting
in class FileSystem
public abstract void afterUnmounting()
FileSystem
afterUnmounting
in class FileSystem