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.
|
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).
|
Modifier and Type | Method and Description |
---|---|
void |
InMemoryFileSystemImpl.deleteFile(FileHandle aFileHandle)
Deletes a file (handle) from the file system.
|
void |
VirtualFileSystemWrapperImpl.deleteFile(FileHandle aFileHandle)
Deletes a file (handle) from the file system.
|
InputStream |
InMemoryFileSystemImpl.fromFile(FileHandle aFromFileHandle)
An input stream is being provided from which the data of the file
(handle) may be read.
|
InputStream |
VirtualFileSystemWrapperImpl.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,
File aToFile)
The data contained in the given file (handle) is written to the provided
file.
|
void |
VirtualFileSystemWrapperImpl.fromFile(FileHandle aFromFileHandle,
File aToFile)
The data contained in the given file (handle) is written to the provided
file.
|
void |
InMemoryFileSystemImpl.fromFile(FileHandle aFromFileHandle,
OutputStream aOutputStream)
The data contained in the given file (handle) is written to the provided
output stream.
|
void |
VirtualFileSystemWrapperImpl.fromFile(FileHandle aFromFileHandle,
OutputStream aOutputStream)
The data contained in the given file (handle) is written to the provided
output stream.
|
FileHandle |
InMemoryFileSystemImpl.moveFile(FileHandle aFileHandle,
String aNewKey)
Renames the file (handle), it will be accessible via the provided key.
|
FileHandle |
VirtualFileSystemWrapperImpl.moveFile(FileHandle aFileHandle,
String aNewKey)
Renames the file (handle), it will be accessible via the provided key.
|
FileHandle |
InMemoryFileSystemImpl.renameFile(FileHandle aFileHandle,
String aNewName)
Renames the file (handle), the name part of the key will be renamed to
the new name.
|
FileHandle |
VirtualFileSystemWrapperImpl.renameFile(FileHandle aFileHandle,
String aNewName)
Renames the file (handle), the name part of the key will be renamed to
the new name.
|
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).
|
OutputStream |
VirtualFileSystemWrapperImpl.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 |
VirtualFileSystemWrapperImpl.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,
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 |
VirtualFileSystemWrapperImpl.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 |
InMemoryFileSystemImpl.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).
|
void |
VirtualFileSystemWrapperImpl.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).
|
Copyright © 2015. All rights reserved.