Package | Description |
---|---|
org.refcodes.filesystem | |
org.refcodes.filesystem.impls |
Modifier and Type | Method and Description |
---|---|
FileHandle |
FileSystem.createFile(String aKey)
Creates a file (handle) with the given key.
|
FileHandle |
FileSystem.createFile(String aPath,
String aName)
Creates a file (handle) with the given path and name.
|
void |
FileSystem.deleteFile(FileHandle aFileHandle)
Deletes a file (handle) from the file system.
|
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,
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.
|
FileHandle |
FileSystem.getFileHandle(String aKey)
Gets a file (handle) with the given key from the file system.
|
FileHandle |
FileSystem.getFileHandle(String aPath,
String aName)
Gets a file (handle) with the given path and name from the file system.
|
List<FileHandle> |
FileSystem.getFileHandles(String aPath,
boolean isRecursively)
With the behavior of the
#hasFiles() method, all file (handle)s
found for the path are returned. |
boolean |
FileSystem.hasFile(FileHandle aFileHandle)
Returns true in case the given file (handle) exists.
|
boolean |
FileSystem.hasFile(String aKey)
Tests whether the file system knows a file (handle) with the given key.
|
boolean |
FileSystem.hasFile(String aPath,
String aName)
Tests whether the file system knows a file (handle) with the given path
and name.
|
boolean |
FileSystem.hasFiles(String aPath,
boolean isRecursively)
Determines whether there is any file (handle)s found for the given path.
|
FileHandle |
FileSystem.moveFile(FileHandle aFileHandle,
String aNewKey)
Renames the file (handle), it will be accessible via the provided key.
|
FileHandle |
FileSystem.renameFile(FileHandle aFileHandle,
String aNewName)
Renames the file (handle), the name part of the key will be renamed to
the new name.
|
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).
|
Modifier and Type | Method and Description |
---|---|
FileHandle |
InMemoryFileSystemImpl.createFile(String aKey) |
FileHandle |
ChangeRootFileSystemWrapperImpl.createFile(String aKey) |
FileHandle |
InMemoryFileSystemImpl.createFile(String aPath,
String aName) |
FileHandle |
ChangeRootFileSystemWrapperImpl.createFile(String aPath,
String aName) |
void |
InMemoryFileSystemImpl.deleteFile(FileHandle aFileHandle) |
void |
ChangeRootFileSystemWrapperImpl.deleteFile(FileHandle aFileHandle) |
InputStream |
InMemoryFileSystemImpl.fromFile(FileHandle aFromFileHandle) |
InputStream |
ChangeRootFileSystemWrapperImpl.fromFile(FileHandle aFromFileHandle) |
void |
InMemoryFileSystemImpl.fromFile(FileHandle aFromFileHandle,
File aToFile) |
void |
ChangeRootFileSystemWrapperImpl.fromFile(FileHandle aFromFileHandle,
File aToFile) |
void |
InMemoryFileSystemImpl.fromFile(FileHandle aFromFileHandle,
OutputStream aOutputStream) |
void |
ChangeRootFileSystemWrapperImpl.fromFile(FileHandle aFromFileHandle,
OutputStream aOutputStream) |
FileHandle |
InMemoryFileSystemImpl.getFileHandle(String aKey) |
FileHandle |
ChangeRootFileSystemWrapperImpl.getFileHandle(String aKey) |
FileHandle |
InMemoryFileSystemImpl.getFileHandle(String aPath,
String aName) |
FileHandle |
ChangeRootFileSystemWrapperImpl.getFileHandle(String aPath,
String aName) |
List<FileHandle> |
InMemoryFileSystemImpl.getFileHandles(String aPath,
boolean isRecursively) |
List<FileHandle> |
ChangeRootFileSystemWrapperImpl.getFileHandles(String aPath,
boolean isRecursively) |
boolean |
InMemoryFileSystemImpl.hasFile(FileHandle aFileHandle) |
boolean |
ChangeRootFileSystemWrapperImpl.hasFile(FileHandle aFileHandle) |
boolean |
InMemoryFileSystemImpl.hasFile(String aKey) |
boolean |
ChangeRootFileSystemWrapperImpl.hasFile(String aKey) |
boolean |
InMemoryFileSystemImpl.hasFile(String aPath,
String aName) |
boolean |
ChangeRootFileSystemWrapperImpl.hasFile(String aPath,
String aName) |
boolean |
InMemoryFileSystemImpl.hasFiles(String aPath,
boolean isRecursively) |
boolean |
ChangeRootFileSystemWrapperImpl.hasFiles(String aPath,
boolean isRecursively) |
FileHandle |
InMemoryFileSystemImpl.moveFile(FileHandle aFileHandle,
String aNewKey) |
FileHandle |
ChangeRootFileSystemWrapperImpl.moveFile(FileHandle aFileHandle,
String aNewKey) |
FileHandle |
InMemoryFileSystemImpl.renameFile(FileHandle aFileHandle,
String aNewName) |
FileHandle |
ChangeRootFileSystemWrapperImpl.renameFile(FileHandle aFileHandle,
String aNewName) |
void |
InMemoryFileSystemImpl.toFile(FileHandle aToFileHandle,
byte[] aBuffer) |
void |
ChangeRootFileSystemWrapperImpl.toFile(FileHandle aToFileHandle,
byte[] aBuffer) |
void |
InMemoryFileSystemImpl.toFile(FileHandle aToFileHandle,
File aFromFile) |
void |
ChangeRootFileSystemWrapperImpl.toFile(FileHandle aToFileHandle,
File aFromFile) |
void |
InMemoryFileSystemImpl.toFile(FileHandle aToFileHandle,
InputStream aInputStream) |
void |
ChangeRootFileSystemWrapperImpl.toFile(FileHandle aToFileHandle,
InputStream aInputStream) |
Copyright © 2016. All rights reserved.