Package | Description |
---|---|
org.refcodes.filesystem | |
org.refcodes.filesystem.impls |
Modifier and Type | Method and Description |
---|---|
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.
|
boolean |
FileSystem.hasFile(FileHandle aFileHandle)
Returns true in case the given file (handle) exists.
|
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.
|
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,
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).
|
static FileHandle |
FileSystemUtility.toNormalizedFileHandle(FileHandle aFileHandle,
FileSystem aFileSystem)
Test whether the given key may jail break from the name space.
|
Modifier and Type | Method and Description |
---|---|
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) |
boolean |
InMemoryFileSystemImpl.hasFile(FileHandle aFileHandle) |
boolean |
ChangeRootFileSystemWrapperImpl.hasFile(FileHandle aFileHandle) |
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) |
OutputStream |
InMemoryFileSystemImpl.toFile(FileHandle aToFileHandle) |
OutputStream |
ChangeRootFileSystemWrapperImpl.toFile(FileHandle aToFileHandle) |
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 © 2015. All rights reserved.