Uses of Interface
org.refcodes.filesystem.FileHandle
-
Uses of FileHandle in org.refcodes.filesystem
Subinterfaces of FileHandle in org.refcodes.filesystemModifier and TypeInterfaceDescriptionstatic interface
The mutableFileHandle
allows the modification of (fiddling around with) attributes. ------------------------------------------------------------------------- ATTENTION: Usually fiddling around with attributes is not necessary, as theFileSystem
itself provides the sufficient functionality to work with files.Classes in org.refcodes.filesystem that implement FileHandleModifier and TypeClassDescriptionclass
Straight forward implementation of theFileHandle
,.class
The implementation of aFileHandle.MutableFileHandle
. ------------------------------------------------------------------------- CAUTION: fiddling with the path and the name attributes causes theFileHandleImpl.MutableFileHandleImpl.hashCode()
andFileHandleImpl.MutableFileHandleImpl.equals(Object)
methods to change behavior which can aCause problems ehttps://www.metacodes.proly in collections!Fields in org.refcodes.filesystem declared as FileHandleModifier and TypeFieldDescriptionprotected FileHandle
FileSystemException.FileException._fileHandle
Methods in org.refcodes.filesystem that return FileHandleModifier and TypeMethodDescriptionChangeRootFileSystemDecorator.createFile
(String aKey) Creates a file (handle) with the given key.ChangeRootFileSystemDecorator.createFile
(String aPath, String aName) Creates a file (handle) with the given path and name.FileSystem.createFile
(String aKey) Creates a file (handle) with the given key.FileSystem.createFile
(String aPath, String aName) Creates a file (handle) with the given path and name.InMemoryFileSystem.createFile
(String aKey) Creates a file (handle) with the given key.InMemoryFileSystem.createFile
(String aPath, String aName) Creates a file (handle) with the given path and name.ChangeRootFileSystemDecorator.getFileHandle
(String aKey) Gets a file (handle) with the given key from the file system.ChangeRootFileSystemDecorator.getFileHandle
(String aPath, String aName) Gets a file (handle) with the given path and name from the file system.FileHandleAccessor.getFileHandle()
Retrieves the file handle from the file property.FileSystem.getFileHandle
(String aKey) Gets a file (handle) with the given key from the file system.FileSystem.getFileHandle
(String aPath, String aName) Gets a file (handle) with the given path and name from the file system.FileSystemException.FileException.getFileHandle()
Retrieves the file handle from the file property.InMemoryFileSystem.getFileHandle
(String aKey) Gets a file (handle) with the given key from the file system.InMemoryFileSystem.getFileHandle
(String aPath, String aName) Gets a file (handle) with the given path and name from the file system.default FileHandle
FileHandleAccessor.FileHandleProperty.letFileHandle
(String aHandle) This method stores and passes through the given argument, which is very useful for builder APIs: Sets the given file handle (setter) as ofFileHandleAccessor.FileHandleMutator.setFileHandle(String)
and returns the very same value (getter) being produced to aFileHandle
(as ofFileHandleAccessor.getFileHandle()
).ChangeRootFileSystemDecorator.moveFile
(FileHandle aFileHandle, String aNewKey) Renames the file (handle), it will be accessible via the provided key.FileSystem.moveFile
(FileHandle aFileHandle, String aNewKey) Renames the file (handle), it will be accessible via the provided key.InMemoryFileSystem.moveFile
(FileHandle aFileHandle, String aNewKey) Renames the file (handle), it will be accessible via the provided key.ChangeRootFileSystemDecorator.renameFile
(FileHandle aFileHandle, String aNewName) Renames the file (handle), the name part of the key will be renamed to the new name.FileSystem.renameFile
(FileHandle aFileHandle, String aNewName) Renames the file (handle), the name part of the key will be renamed to the new name.InMemoryFileSystem.renameFile
(FileHandle aFileHandle, String aNewName) Renames the file (handle), the name part of the key will be renamed to the new name.FileHandle.MutableFileHandle.toFileHandle()
Converts theFileHandle.MutableFileHandle
back to aFileHandle
to avoid hassle with collections, theObject.hashCode()
and theObject.equals(Object)
operations.FileHandleImpl.MutableFileHandleImpl.toFileHandle()
Converts theFileHandle.MutableFileHandle
back to aFileHandle
to avoid hassle with collections, theObject.hashCode()
and theObject.equals(Object)
operations.static FileHandle
FileSystemUtility.toNormalizedFileHandle
(FileHandle aFileHandle, FileSystem aFileSystem) Test whether the given key may jail break from the name space.Methods in org.refcodes.filesystem that return types with arguments of type FileHandleModifier and TypeMethodDescriptionChangeRootFileSystemDecorator.getFileHandles
(String aPath, boolean isRecursively) With the behavior of theFileSystem.hasFiles(String, boolean)
method, all file (handle)s found for the path are returned.FileSystem.getFileHandles
(String aPath, boolean isRecursively) With the behavior of theFileSystem.hasFiles(String, boolean)
method, all file (handle)s found for the path are returned.InMemoryFileSystem.getFileHandles
(String aPath, boolean isRecursively) With the behavior of theFileSystem.hasFiles(String, boolean)
method, all file (handle)s found for the path are returned.Methods in org.refcodes.filesystem with parameters of type FileHandleModifier and TypeMethodDescriptionvoid
ChangeRootFileSystemDecorator.deleteFile
(FileHandle aFileHandle) Deletes a file (handle) from the file system.void
FileSystem.deleteFile
(FileHandle aFileHandle) Deletes a file (handle) from the file system.void
InMemoryFileSystem.deleteFile
(FileHandle aFileHandle) Deletes a file (handle) from the file system.ChangeRootFileSystemDecorator.fromFile
(FileHandle aFromFileHandle) An input stream is being provided from which the data of the file (handle) may be read.void
ChangeRootFileSystemDecorator.fromFile
(FileHandle aFromFileHandle, File aToFile) The data contained in the given file (handle) is written to the provided file.void
ChangeRootFileSystemDecorator.fromFile
(FileHandle aFromFileHandle, OutputStream aOutputStream) The data contained in the given file (handle) is written to the provided output stream.FileSystem.fromFile
(FileHandle aFromFileHandle) An input stream is being provided from which the data of the file (handle) may be read.void
FileSystem.fromFile
(FileHandle aFromFileHandle, File aToFile) The data contained in the given file (handle) is written to the provided file.void
FileSystem.fromFile
(FileHandle aFromFileHandle, OutputStream aOutputStream) The data contained in the given file (handle) is written to the provided output stream.InMemoryFileSystem.fromFile
(FileHandle aFromFileHandle) An input stream is being provided from which the data of the file (handle) may be read.void
InMemoryFileSystem.fromFile
(FileHandle aFromFileHandle, File aToFile) The data contained in the given file (handle) is written to the provided file.void
InMemoryFileSystem.fromFile
(FileHandle aFromFileHandle, OutputStream aOutputStream) The data contained in the given file (handle) is written to the provided output stream.boolean
ChangeRootFileSystemDecorator.hasFile
(FileHandle aFileHandle) Returns true in case the given file (handle) exists.boolean
FileSystem.hasFile
(FileHandle aFileHandle) Returns true in case the given file (handle) exists.boolean
InMemoryFileSystem.hasFile
(FileHandle aFileHandle) Returns true in case the given file (handle) exists.ChangeRootFileSystemDecorator.moveFile
(FileHandle aFileHandle, String aNewKey) Renames the file (handle), it will be accessible via the provided key.FileSystem.moveFile
(FileHandle aFileHandle, String aNewKey) Renames the file (handle), it will be accessible via the provided key.InMemoryFileSystem.moveFile
(FileHandle aFileHandle, String aNewKey) Renames the file (handle), it will be accessible via the provided key.ChangeRootFileSystemDecorator.renameFile
(FileHandle aFileHandle, String aNewName) Renames the file (handle), the name part of the key will be renamed to the new name.FileSystem.renameFile
(FileHandle aFileHandle, String aNewName) Renames the file (handle), the name part of the key will be renamed to the new name.InMemoryFileSystem.renameFile
(FileHandle aFileHandle, String aNewName) Renames the file (handle), the name part of the key will be renamed to the new name.ChangeRootFileSystemDecorator.toFile
(FileHandle aToFileHandle) Returns an output stream which may be used to write (or append, in case data did already exist for the file system) data to a file (handle).void
ChangeRootFileSystemDecorator.toFile
(FileHandle aToFileHandle, byte[] aBuffer) Data provided by the given buffer is written to the file (handle) (or appended to the file (handle)'s data in case the file (handle) did already contain data).void
ChangeRootFileSystemDecorator.toFile
(FileHandle aToFileHandle, File aFromFile) Data provided by the given input stream is written to the file (handle) (or appended to the file (handle)'s data in case the file (handle) did already contain data).void
ChangeRootFileSystemDecorator.toFile
(FileHandle aToFileHandle, InputStream aInputStream) Data provided by the given input stream is written to the file (handle) (or appended to the file (handle)'s data in case the file (handle) did already contain data).FileSystem.toFile
(FileHandle aToFileHandle) Returns an output stream which may be used to write (or append, in case data did already exist for the file system) data to a file (handle).void
FileSystem.toFile
(FileHandle aToFileHandle, byte[] aBuffer) Data provided by the given buffer is written to the file (handle) (or appended to the file (handle)'s data in case the file (handle) did already contain data).void
FileSystem.toFile
(FileHandle aToFileHandle, File aFromFile) Data provided by the given input stream is written to the file (handle) (or appended to the file (handle)'s data in case the file (handle) did already contain data).void
FileSystem.toFile
(FileHandle aToFileHandle, InputStream aInputStream) Data provided by the given input stream is written to the file (handle) (or appended to the file (handle)'s data in case the file (handle) did already contain data).InMemoryFileSystem.toFile
(FileHandle aToFileHandle) Returns an output stream which may be used to write (or append, in case data did already exist for the file system) data to a file (handle).void
InMemoryFileSystem.toFile
(FileHandle aToFileHandle, byte[] aBuffer) Data provided by the given buffer is written to the file (handle) (or appended to the file (handle)'s data in case the file (handle) did already contain data).void
InMemoryFileSystem.toFile
(FileHandle aToFileHandle, File aFromFile) Data provided by the given input stream is written to the file (handle) (or appended to the file (handle)'s data in case the file (handle) did already contain data).void
InMemoryFileSystem.toFile
(FileHandle aToFileHandle, InputStream aInputStream) Data provided by the given input stream is written to the file (handle) (or appended to the file (handle)'s data in case the file (handle) did already contain data).static FileHandle
FileSystemUtility.toNormalizedFileHandle
(FileHandle aFileHandle, FileSystem aFileSystem) Test whether the given key may jail break from the name space.Constructors in org.refcodes.filesystem with parameters of type FileHandleModifierConstructorDescriptionConcurrentAccessException
(String aMessage, FileHandle aFileHandle) ConcurrentAccessException
(String aMessage, FileHandle aFileHandle, String aErrorCode) ConcurrentAccessException
(String aMessage, FileHandle aFileHandle, Throwable aCause) ConcurrentAccessException
(String aMessage, FileHandle aFileHandle, Throwable aCause, String aErrorCode) ConcurrentAccessException
(FileHandle aFileHandle, Throwable aCause) ConcurrentAccessException
(FileHandle aFileHandle, Throwable aCause, String aErrorCode) FileException
(String aMessage, FileHandle aFileHandle) FileException
(String aMessage, FileHandle aFileHandle, String aErrorCode) FileException
(String aMessage, FileHandle aFileHandle, Throwable aCause) FileException
(String aMessage, FileHandle aFileHandle, Throwable aCause, String aErrorCode) FileException
(FileHandle aFileHandle, Throwable aCause) FileException
(FileHandle aFileHandle, Throwable aCause, String aErrorCode) FileHandleImpl
(FileHandle aFileHandle) Constructs aFileHandle
object with the properties of the givenFileHandle
.IllegalFileException
(FileHandle aFile, String aMessage) IllegalFileException
(FileHandle aFile, String aMessage, String aErrorCode) IllegalFileException
(FileHandle aFile, String aMessage, Throwable aCause) IllegalFileException
(FileHandle aFile, String aMessage, Throwable aCause, String aErrorCode) IllegalFileException
(FileHandle aFile, Throwable aCause) IllegalFileException
(FileHandle aFile, Throwable aCause, String aErrorCode) MutableFileHandleImpl
(FileHandle aFileHandle) Instantiates a new mutable file handle impl.NoAccessException
(String aMessage, FileHandle aFileHandle) NoAccessException
(String aMessage, FileHandle aFileHandle, String aErrorCode) NoAccessException
(String aMessage, FileHandle aFileHandle, Throwable aCause) NoAccessException
(String aMessage, FileHandle aFileHandle, Throwable aCause, String aErrorCode) NoAccessException
(FileHandle aFileHandle, Throwable aCause) NoAccessException
(FileHandle aFileHandle, Throwable aCause, String aErrorCode) NoDeleteAccessException
(String aMessage, FileHandle aFileHandle) NoDeleteAccessException
(String aMessage, FileHandle aFileHandle, String aErrorCode) NoDeleteAccessException
(String aMessage, FileHandle aFileHandle, Throwable aCause) NoDeleteAccessException
(String aMessage, FileHandle aFileHandle, Throwable aCause, String aErrorCode) NoDeleteAccessException
(FileHandle aFileHandle, Throwable aCause) NoDeleteAccessException
(FileHandle aFileHandle, Throwable aCause, String aErrorCode) NoReadAccessException
(String aMessage, FileHandle aFileHandle) NoReadAccessException
(String aMessage, FileHandle aFileHandle, String aErrorCode) NoReadAccessException
(String aMessage, FileHandle aFileHandle, Throwable aCause) NoReadAccessException
(String aMessage, FileHandle aFileHandle, Throwable aCause, String aErrorCode) NoReadAccessException
(FileHandle aFileHandle, Throwable aCause) NoReadAccessException
(FileHandle aFileHandle, Throwable aCause, String aErrorCode) NoWriteAccessException
(String aMessage, FileHandle aFileHandle) NoWriteAccessException
(String aMessage, FileHandle aFileHandle, String aErrorCode) NoWriteAccessException
(String aMessage, FileHandle aFileHandle, Throwable aCause) NoWriteAccessException
(String aMessage, FileHandle aFileHandle, Throwable aCause, String aErrorCode) NoWriteAccessException
(FileHandle aFileHandle, Throwable aCause) NoWriteAccessException
(FileHandle aFileHandle, Throwable aCause, String aErrorCode) UnknownFileException
(String aMessage, FileHandle aFileHandle, String aErrorCode) UnknownFileException
(String aMessage, FileHandle aFileHandle, Throwable aCause) UnknownFileException
(String aMessage, FileHandle aFileHandle, Throwable aCause, String aErrorCode) UnknownFileException
(FileHandle aFileHandle, String aMessage) UnknownFileException
(FileHandle aFileHandle, Throwable aCause) UnknownFileException
(FileHandle aFileHandle, Throwable aCause, String aErrorCode)