Package | Description |
---|---|
jfilesyslib |
This package contains the FileSystem and the FullFileSystem interface.
|
jfilesyslib.filesystems |
This package contains some demo file systems, which may be used by you.
|
jfilesyslib.utils |
This package contains some helpful utilities, e.g. a file system test.
|
Modifier and Type | Method and Description |
---|---|
abstract void |
FileSystem.close(FileHandle handle)
Closes the file handle.
|
abstract void |
FileSystem.flush(FileHandle handle)
Should write all pending data in the cache.
|
abstract void |
FileSystem.setLength(FileHandle handle,
long length)
Truncates or lengthens a file.
|
abstract void |
FileSystem.write(FileHandle handle,
java.nio.ByteBuffer buffer,
long offset)
(Over-)writes the buffer into the specified file handle.
|
Modifier and Type | Method and Description |
---|---|
void |
MergeDirectlyFs.close(FileHandle handle) |
void |
LoggingFs.close(FileHandle fh) |
void |
ExtendedSupportFs.close(FileHandle handle) |
void |
CachingFs.close(FileHandle fh) |
void |
MergeDirectlyFs.flush(FileHandle handle) |
void |
LoggingFs.flush(FileHandle fh) |
void |
ExtendedSupportFs.flush(FileHandle handle) |
void |
CachingFs.flush(FileHandle fh) |
void |
MergeDirectlyFs.setLength(FileHandle handle,
long length) |
void |
LoggingFs.setLength(FileHandle fh,
long length) |
void |
ExtendedSupportFs.setLength(FileHandle fh,
long length) |
void |
CachingFs.setLength(FileHandle fh,
long length) |
void |
MergeDirectlyFs.write(FileHandle handle,
java.nio.ByteBuffer buffer,
long offset) |
void |
LoggingFs.write(FileHandle fh,
java.nio.ByteBuffer buffer,
long offset) |
void |
ExtendedSupportFs.write(FileHandle handle,
java.nio.ByteBuffer buffer,
long offset) |
void |
CachingFs.write(FileHandle fh,
java.nio.ByteBuffer buffer,
long offset) |
Modifier and Type | Method and Description |
---|---|
static void |
FileSystemUtils.writeLines(FileSystem filesystem,
java.lang.String file,
java.lang.String[] content)
Writes the lines into a text file.
|
static void |
FileSystemUtils.writeWhole(FileSystem filesystem,
java.lang.String file,
byte[] content)
Writes the content into a file.
|
static void |
FileSystemUtils.writeWholeText(FileSystem filesystem,
java.lang.String file,
java.lang.String content)
Writes the text into a text file.
|