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 |
FullFileSystem.lockFile(FileHandle handle,
long byteOffset,
long length) |
void |
FileSystem.lockFile(FileHandle handle,
long byteOffset,
long length)
Locks a file in the specified range for every write access except for the File Handle handle.
|
abstract FileHandle |
FileSystem.openFile(java.lang.String file,
boolean read,
boolean write)
Opens a file.
|
abstract void |
FullFileSystem.unlockFile(FileHandle handle,
long byteOffset,
long length) |
void |
FileSystem.unlockFile(FileHandle handle,
long byteOffset,
long length)
Unlocks a file in the specified range.
|
Modifier and Type | Method and Description |
---|---|
void |
MergeDirectlyFs.lockFile(FileHandle handle,
long byteOffset,
long length) |
void |
LoggingFs.lockFile(FileHandle handle,
long byteOffset,
long length) |
void |
ExtendedSupportFs.lockFile(FileHandle handle,
long byteOffset,
long length) |
void |
CachingFs.lockFile(FileHandle handle,
long byteOffset,
long length) |
FileHandle |
MergeDirectlyFs.openFile(java.lang.String file,
boolean read,
boolean write) |
FileHandle |
MemoryFs.openFile(java.lang.String path,
boolean read,
boolean write) |
FileHandle |
MirrorFs.openFile(java.lang.String path,
boolean read,
boolean write) |
FileHandle |
LoggingFs.openFile(java.lang.String path,
boolean read,
boolean write) |
FileHandle |
ExtendedSupportFs.openFile(java.lang.String path,
boolean read,
boolean write) |
FileHandle |
CachingFs.openFile(java.lang.String path,
boolean read,
boolean write) |
void |
MergeDirectlyFs.unlockFile(FileHandle handle,
long byteOffset,
long length) |
void |
LoggingFs.unlockFile(FileHandle handle,
long byteOffset,
long length) |
void |
ExtendedSupportFs.unlockFile(FileHandle handle,
long byteOffset,
long length) |
void |
CachingFs.unlockFile(FileHandle handle,
long byteOffset,
long length) |
Modifier and Type | Method and Description |
---|---|
static java.lang.String[] |
FileSystemUtils.readLines(FileSystem filesystem,
java.lang.String file)
Reads a text file fully into memory and splits the lines.
|
static byte[] |
FileSystemUtils.readWhole(FileSystem filesystem,
java.lang.String file)
Reads a binary file fully into memory.
|
static java.lang.String |
FileSystemUtils.readWholeText(FileSystem filesystem,
java.lang.String file)
Reads a text file fully into memory.
|
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.
|