Uses of Interface
org.refcodes.filesystem.FileHandle
-
-
Uses of FileHandle in org.refcodes.filesystem
Subinterfaces of FileHandle in org.refcodes.filesystem Modifier and Type Interface Description static interface
FileHandle.MutableFileHandle
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 FileHandle Modifier and Type Class Description class
FileHandleImpl
Straight forward implementation of theFileHandle
,.class
FileHandleImpl.MutableFileHandleImpl
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 cause problems especially in collections!Methods in org.refcodes.filesystem that return FileHandle Modifier and Type Method Description FileHandle
ChangeRootFileSystemWrapperImpl. createFile(java.lang.String aKey)
Creates a file (handle) with the given key.FileHandle
ChangeRootFileSystemWrapperImpl. createFile(java.lang.String aPath, java.lang.String aName)
Creates a file (handle) with the given path and name.FileHandle
FileSystem. createFile(java.lang.String aKey)
Creates a file (handle) with the given key.FileHandle
FileSystem. createFile(java.lang.String aPath, java.lang.String aName)
Creates a file (handle) with the given path and name.FileHandle
InMemoryFileSystemImpl. createFile(java.lang.String aKey)
Creates a file (handle) with the given key.FileHandle
InMemoryFileSystemImpl. createFile(java.lang.String aPath, java.lang.String aName)
Creates a file (handle) with the given path and name.FileHandle
FileHandleAccessor. getFile()
Retrieves the file handle from the file property.FileHandle
ChangeRootFileSystemWrapperImpl. getFileHandle(java.lang.String aKey)
Gets a file (handle) with the given key from the file system.FileHandle
ChangeRootFileSystemWrapperImpl. getFileHandle(java.lang.String aPath, java.lang.String aName)
Gets a file (handle) with the given path and name from the file system.FileHandle
FileSystem. getFileHandle(java.lang.String aKey)
Gets a file (handle) with the given key from the file system.FileHandle
FileSystem. getFileHandle(java.lang.String aPath, java.lang.String aName)
Gets a file (handle) with the given path and name from the file system.FileHandle
InMemoryFileSystemImpl. getFileHandle(java.lang.String aKey)
Gets a file (handle) with the given key from the file system.FileHandle
InMemoryFileSystemImpl. getFileHandle(java.lang.String aPath, java.lang.String aName)
Gets a file (handle) with the given path and name from the file system.FileHandle
ChangeRootFileSystemWrapperImpl. moveFile(FileHandle aFileHandle, java.lang.String aNewKey)
Renames the file (handle), it will be accessible via the provided key.FileHandle
FileSystem. moveFile(FileHandle aFileHandle, java.lang.String aNewKey)
Renames the file (handle), it will be accessible via the provided key.FileHandle
InMemoryFileSystemImpl. moveFile(FileHandle aFileHandle, java.lang.String aNewKey)
Renames the file (handle), it will be accessible via the provided key.FileHandle
ChangeRootFileSystemWrapperImpl. renameFile(FileHandle aFileHandle, java.lang.String aNewName)
Renames the file (handle), the name part of the key will be renamed to the new name.FileHandle
FileSystem. renameFile(FileHandle aFileHandle, java.lang.String aNewName)
Renames the file (handle), the name part of the key will be renamed to the new name.FileHandle
InMemoryFileSystemImpl. renameFile(FileHandle aFileHandle, java.lang.String aNewName)
Renames the file (handle), the name part of the key will be renamed to the new name.FileHandle
FileHandle.MutableFileHandle. toFileHandle()
Converts theFileHandle.MutableFileHandle
back to aFileHandle
to avoid hassle with collections, theObject.hashCode()
and theObject.equals(Object)
operations.FileHandle
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 FileHandle Modifier and Type Method Description java.util.List<FileHandle>
ChangeRootFileSystemWrapperImpl. getFileHandles(java.lang.String aPath, boolean isRecursively)
With the behavior of theFileSystem.hasFiles(String, boolean)
method, all file (handle)s found for the path are returned.java.util.List<FileHandle>
FileSystem. getFileHandles(java.lang.String aPath, boolean isRecursively)
With the behavior of theFileSystem.hasFiles(String, boolean)
method, all file (handle)s found for the path are returned.java.util.List<FileHandle>
InMemoryFileSystemImpl. getFileHandles(java.lang.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 FileHandle Modifier and Type Method Description void
ChangeRootFileSystemWrapperImpl. 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
InMemoryFileSystemImpl. deleteFile(FileHandle aFileHandle)
Deletes a file (handle) from the file system.java.io.InputStream
ChangeRootFileSystemWrapperImpl. fromFile(FileHandle aFromFileHandle)
An input stream is being provided from which the data of the file (handle) may be read.void
ChangeRootFileSystemWrapperImpl. fromFile(FileHandle aFromFileHandle, java.io.File aToFile)
The data contained in the given file (handle) is written to the provided file.void
ChangeRootFileSystemWrapperImpl. fromFile(FileHandle aFromFileHandle, java.io.OutputStream aOutputStream)
The data contained in the given file (handle) is written to the provided output stream.java.io.InputStream
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, java.io.File aToFile)
The data contained in the given file (handle) is written to the provided file.void
FileSystem. fromFile(FileHandle aFromFileHandle, java.io.OutputStream aOutputStream)
The data contained in the given file (handle) is written to the provided output stream.java.io.InputStream
InMemoryFileSystemImpl. fromFile(FileHandle aFromFileHandle)
An input stream is being provided from which the data of the file (handle) may be read.void
InMemoryFileSystemImpl. fromFile(FileHandle aFromFileHandle, java.io.File aToFile)
The data contained in the given file (handle) is written to the provided file.void
InMemoryFileSystemImpl. fromFile(FileHandle aFromFileHandle, java.io.OutputStream aOutputStream)
The data contained in the given file (handle) is written to the provided output stream.boolean
ChangeRootFileSystemWrapperImpl. 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
InMemoryFileSystemImpl. hasFile(FileHandle aFileHandle)
Returns true in case the given file (handle) exists.FileHandle
ChangeRootFileSystemWrapperImpl. moveFile(FileHandle aFileHandle, java.lang.String aNewKey)
Renames the file (handle), it will be accessible via the provided key.FileHandle
FileSystem. moveFile(FileHandle aFileHandle, java.lang.String aNewKey)
Renames the file (handle), it will be accessible via the provided key.FileHandle
InMemoryFileSystemImpl. moveFile(FileHandle aFileHandle, java.lang.String aNewKey)
Renames the file (handle), it will be accessible via the provided key.FileHandle
ChangeRootFileSystemWrapperImpl. renameFile(FileHandle aFileHandle, java.lang.String aNewName)
Renames the file (handle), the name part of the key will be renamed to the new name.FileHandle
FileSystem. renameFile(FileHandle aFileHandle, java.lang.String aNewName)
Renames the file (handle), the name part of the key will be renamed to the new name.FileHandle
InMemoryFileSystemImpl. renameFile(FileHandle aFileHandle, java.lang.String aNewName)
Renames the file (handle), the name part of the key will be renamed to the new name.java.io.OutputStream
ChangeRootFileSystemWrapperImpl. 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
ChangeRootFileSystemWrapperImpl. 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
ChangeRootFileSystemWrapperImpl. toFile(FileHandle aToFileHandle, java.io.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
ChangeRootFileSystemWrapperImpl. toFile(FileHandle aToFileHandle, java.io.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).java.io.OutputStream
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, java.io.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, java.io.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).java.io.OutputStream
InMemoryFileSystemImpl. 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
InMemoryFileSystemImpl. 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
InMemoryFileSystemImpl. toFile(FileHandle aToFileHandle, java.io.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
InMemoryFileSystemImpl. toFile(FileHandle aToFileHandle, java.io.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 FileHandle Constructor Description ConcurrentAccessException(FileHandle aFile, java.lang.String message)
Instantiates a new concurrent access exception.ConcurrentAccessException(FileHandle aFile, java.lang.String aMessage, java.lang.String aErrorCode)
Instantiates a new concurrent access exception.ConcurrentAccessException(FileHandle aFile, java.lang.String message, java.lang.Throwable cause)
Instantiates a new concurrent access exception.ConcurrentAccessException(FileHandle aFile, java.lang.String aMessage, java.lang.Throwable aCause, java.lang.String aErrorCode)
Instantiates a new concurrent access exception.ConcurrentAccessException(FileHandle aFile, java.lang.Throwable cause)
Instantiates a new concurrent access exception.ConcurrentAccessException(FileHandle aFile, java.lang.Throwable aCause, java.lang.String aErrorCode)
Instantiates a new concurrent access exception.FileHandleImpl(FileHandle aFileHandle)
Constructs aFileHandle
object with the properties of the givenFileHandle
.IllegalFileHandleException(FileHandle aFile, java.lang.String message)
Instantiates a new illegal file handle exception.IllegalFileHandleException(FileHandle aFile, java.lang.String aMessage, java.lang.String aErrorCode)
Instantiates a new illegal file handle exception.IllegalFileHandleException(FileHandle aFile, java.lang.String message, java.lang.Throwable cause)
Instantiates a new illegal file handle exception.IllegalFileHandleException(FileHandle aFile, java.lang.String aMessage, java.lang.Throwable aCause, java.lang.String aErrorCode)
Instantiates a new illegal file handle exception.IllegalFileHandleException(FileHandle aFile, java.lang.Throwable cause)
Instantiates a new illegal file handle exception.IllegalFileHandleException(FileHandle aFile, java.lang.Throwable aCause, java.lang.String aErrorCode)
Instantiates a new illegal file handle exception.MutableFileHandleImpl(FileHandle aFileHandle)
Instantiates a new mutable file handle impl.NoDeleteAccessException(FileHandle aFile, java.lang.String message)
Instantiates a new no delete access exception.NoDeleteAccessException(FileHandle aFile, java.lang.String aMessage, java.lang.String aErrorCode)
Instantiates a new no delete access exception.NoDeleteAccessException(FileHandle aFile, java.lang.String message, java.lang.Throwable cause)
Instantiates a new no delete access exception.NoDeleteAccessException(FileHandle aFile, java.lang.String aMessage, java.lang.Throwable aCause, java.lang.String aErrorCode)
Instantiates a new no delete access exception.NoDeleteAccessException(FileHandle aFile, java.lang.Throwable cause)
Instantiates a new no delete access exception.NoDeleteAccessException(FileHandle aFile, java.lang.Throwable aCause, java.lang.String aErrorCode)
Instantiates a new no delete access exception.NoReadAccessException(FileHandle aFile, java.lang.String message)
Instantiates a new no read access exception.NoReadAccessException(FileHandle aFile, java.lang.String aMessage, java.lang.String aErrorCode)
Instantiates a new no read access exception.NoReadAccessException(FileHandle aFile, java.lang.String message, java.lang.Throwable cause)
Instantiates a new no read access exception.NoReadAccessException(FileHandle aFile, java.lang.String aMessage, java.lang.Throwable aCause, java.lang.String aErrorCode)
Instantiates a new no read access exception.NoReadAccessException(FileHandle aFile, java.lang.Throwable cause)
Instantiates a new no read access exception.NoReadAccessException(FileHandle aFile, java.lang.Throwable aCause, java.lang.String aErrorCode)
Instantiates a new no read access exception.NoWriteAccessException(FileHandle aFile, java.lang.String message)
Instantiates a new no write access exception.NoWriteAccessException(FileHandle aFile, java.lang.String aMessage, java.lang.String aErrorCode)
Instantiates a new no write access exception.NoWriteAccessException(FileHandle aFile, java.lang.String message, java.lang.Throwable cause)
Instantiates a new no write access exception.NoWriteAccessException(FileHandle aFile, java.lang.String aMessage, java.lang.Throwable aCause, java.lang.String aErrorCode)
Instantiates a new no write access exception.NoWriteAccessException(FileHandle aFile, java.lang.Throwable cause)
Instantiates a new no write access exception.NoWriteAccessException(FileHandle aFile, java.lang.Throwable aCause, java.lang.String aErrorCode)
Instantiates a new no write access exception.UnknownFileException(FileHandle aFile, java.lang.String message)
Instantiates a new unknown file exception.UnknownFileException(FileHandle aFile, java.lang.String aMessage, java.lang.String aErrorCode)
Instantiates a new unknown file exception.UnknownFileException(FileHandle aFile, java.lang.String message, java.lang.Throwable cause)
Instantiates a new unknown file exception.UnknownFileException(FileHandle aFile, java.lang.String aMessage, java.lang.Throwable aCause, java.lang.String aErrorCode)
Instantiates a new unknown file exception.UnknownFileException(FileHandle aFile, java.lang.Throwable cause)
Instantiates a new unknown file exception.UnknownFileException(FileHandle aFile, java.lang.Throwable aCause, java.lang.String aErrorCode)
Instantiates a new unknown file exception.
-