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 | Class and Description |
---|---|
class |
FullFileSystem
This abstract class lets you implement every file system feature.
|
Modifier and Type | Method and Description |
---|---|
static java.io.File |
Mounter.chooseMountPath(FileSystem system)
Automatically chooses an available mount path
|
static boolean |
Mounter.mount(FileSystem fileSystem,
java.io.File mountPath)
Mounts the specified file system on the mount path
|
static boolean |
Mounter.mount(FileSystem fileSystem,
java.io.File mountPath,
MountOptions options)
Mounts the specified file system on the mount path
|
static boolean |
Mounter.mount(FileSystem fileSystem,
java.io.File mountPath,
MountOptions options,
DriverHandler driverHandler)
Mounts the specified file system on the mount path
|
static boolean |
Mounter.unmount(FileSystem fileSystem)
Unmounts the specified file system
|
Modifier and Type | Class and Description |
---|---|
class |
CachingFs
Provides a simple caching mechanism.
|
class |
ExtendedSupportFs
Provides default handlers for symbolic links, unix permissions, windows attributes and extended attributes.
|
class |
LoggingFs
The logging file system.
|
class |
MemoryFs
A temporary (virtual) file system.
|
class |
MergeDirectlyFs
Merges two file systems directly
|
class |
MirrorFs
Mirrors a directory.
|
Constructor and Description |
---|
CachingFs(FileSystem innerFs)
Creates a new instance of the caching file system
|
CachingFs(FileSystem innerFs,
int cacheSize)
Creates a new instance of the caching file system
|
ExtendedSupportFs(FileSystem innerFs)
Creates a new instance of ExtendedSupportFs
|
ExtendedSupportFs(FileSystem innerFs,
FileSystem attributeFs)
Creates a new instance of ExtendedSupportFs
|
ExtendedSupportFs(FileSystem innerFs,
FileSystem attributeFs,
boolean symolicLinks,
boolean unixPermissions,
boolean windowsAttributes,
boolean extendedAttributes,
boolean fileLocking,
boolean hardLinks)
Creates a new instance of ExtendedSupportFs
|
LoggingFs(FileSystem innerFs)
Creates a new instance of the logging file system
|
LoggingFs(FileSystem innerFs,
boolean pathNotFoundVerbose)
Creates a new instance of the logging file system
|
MergeDirectlyFs(FileSystem master,
FileSystem slave)
Creates a new instance of MergeDirectlyFs.
|
Modifier and Type | Method and Description |
---|---|
static void |
TestFileSystem.performExtendedAttributesTest(FileSystem fileSystem)
Performs some tests on extended attributes
|
static void |
TestFileSystem.performFullTests(FileSystem fs)
This is a small utillity function, which calls testFileSystemUnmounted, mounts the file system, performs the mounted file system tests and unmounts it.
|
static void |
TestFileSystem.performHardLinksTest(FileSystem fileSystem)
Performs some tests on hard links
|
static void |
TestFileSystem.performLockTest(FileSystem fileSystem)
Performs some tests on windows file locking
|
static void |
TestFileSystem.performSymbolicLinksTest(FileSystem fileSystem)
Performs some tests on symbolic links
|
static void |
TestFileSystem.performUnixPermissionsTest(FileSystem fileSystem)
Performs some tests on unix permissions
|
static void |
TestFileSystem.performWindowsAttributesTest(FileSystem fileSystem)
Performs some tests on windows attributes
|
static java.lang.String[] |
FileSystemUtils.readLines(FileSystem filesystem,
java.lang.String file)
Reads a text file fully into memory and splits the lines.
|
static java.lang.String[] |
FileSystemUtils.readLines(FileSystem filesystem,
java.lang.String file,
java.lang.String[] defaultReturn)
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 |
TestFileSystem.testFileSystemUnmounted(FileSystem fileSystem,
boolean isReadOnly)
Tests the file system.
|
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.
|