Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
C
- checkSubPath(Path, String) - Method in interface com.aoapps.io.filesystems.FileSystem
-
Checks that a given path name is acceptable to this file system.
- checkSubPath(Path, String) - Method in class com.aoapps.io.filesystems.FileSystemWrapper
- checkSubPath(Path, String) - Method in class com.aoapps.io.filesystems.JavaFileSystem
-
Checks that a given path name is acceptable to this file system.
- checkSubPath(Path, String) - Method in class com.aoapps.io.filesystems.TempFileSystem
-
Temporary file systems support all possible paths.
- close() - Method in interface com.aoapps.io.filesystems.FileLock
-
Unlocks a file.
- close() - Method in class com.aoapps.io.filesystems.FileSystemWrapper.PathIteratorWrapper
- com.aoapps.io.filesystems - module com.aoapps.io.filesystems
- com.aoapps.io.filesystems - package com.aoapps.io.filesystems
- compareTo(Path) - Method in class com.aoapps.io.filesystems.Path
-
Compares two paths in lexical order.
- createDirectory(Path) - Method in interface com.aoapps.io.filesystems.FileSystem
-
Atomically creates a directory (must not have already existed).
- createDirectory(Path) - Method in class com.aoapps.io.filesystems.FileSystemWrapper
- createDirectory(Path) - Method in class com.aoapps.io.filesystems.JavaFileSystem
- createDirectory(Path) - Method in class com.aoapps.io.filesystems.RandomFailFileSystem
- createDirectory(Path) - Method in class com.aoapps.io.filesystems.ReadOnlyFileSystem
- createDirectory(Path) - Method in class com.aoapps.io.filesystems.TempFileSystem
- createFile(Path) - Method in interface com.aoapps.io.filesystems.FileSystem
-
Atomically creates an empty file (must not have already existed).
- createFile(Path) - Method in class com.aoapps.io.filesystems.FileSystemWrapper
- createFile(Path) - Method in class com.aoapps.io.filesystems.JavaFileSystem
- createFile(Path) - Method in class com.aoapps.io.filesystems.RandomFailFileSystem
- createFile(Path) - Method in class com.aoapps.io.filesystems.ReadOnlyFileSystem
- createFile(Path) - Method in class com.aoapps.io.filesystems.TempFileSystem
D
- delete(Path) - Method in interface com.aoapps.io.filesystems.FileSystem
-
Deletes the file system object at the given path.
- delete(Path) - Method in class com.aoapps.io.filesystems.FileSystemWrapper
- delete(Path) - Method in class com.aoapps.io.filesystems.JavaFileSystem
- delete(Path) - Method in class com.aoapps.io.filesystems.RandomFailFileSystem
- delete(Path) - Method in class com.aoapps.io.filesystems.ReadOnlyFileSystem
- delete(Path) - Method in class com.aoapps.io.filesystems.TempFileSystem
E
- equals(Path) - Method in class com.aoapps.io.filesystems.Path
-
Two paths are equal if they are of the same depth and have equal names.
- equals(Object) - Method in class com.aoapps.io.filesystems.Path
- explode() - Method in class com.aoapps.io.filesystems.Path
-
Explodes this path into a set of names, not including the empty root name itself.
- explode(String[]) - Method in class com.aoapps.io.filesystems.Path
-
Explodes this path to the given array.
F
- FileLock - Interface in com.aoapps.io.filesystems
-
A lock object obtained when a file is successfully locked.
- files - Variable in class com.aoapps.io.filesystems.TempFileSystem
- FileSystem - Interface in com.aoapps.io.filesystems
-
The most basic layer of what all file systems have in common.
- FileSystemObject() - Constructor for class com.aoapps.io.filesystems.TempFileSystem.FileSystemObject
- FileSystemWrapper - Class in com.aoapps.io.filesystems
-
A file system that wraps another to intercept and otherwise modify interactions.
- FileSystemWrapper(FileSystem) - Constructor for class com.aoapps.io.filesystems.FileSystemWrapper
- FileSystemWrapper.PathIteratorWrapper - Class in com.aoapps.io.filesystems
-
Wraps
PathIterator
, wrapping each result inFileSystemWrapper.PathIteratorWrapper.next()
. - FileSystemWrapper.PathWrapper - Class in com.aoapps.io.filesystems
-
Wraps a
Path
.
G
- getCreateDirectory() - Method in interface com.aoapps.io.filesystems.RandomFailFileSystem.FailureProbabilities
- getCreateFile() - Method in interface com.aoapps.io.filesystems.RandomFailFileSystem.FailureProbabilities
- getDefault() - Static method in class com.aoapps.io.filesystems.JavaFileSystem
-
Gets the wrapper for the default file system implement by the Java runtime, only one instance is created.
- getDepth() - Method in class com.aoapps.io.filesystems.Path
-
Gets the depth of this path.
- getFileSystem() - Method in class com.aoapps.io.filesystems.Path
-
Gets the file system this path belongs to and is valid for.
- getJavaPath(Path) - Method in class com.aoapps.io.filesystems.JavaFileSystem
-
Gets a Java File for the given path.
- getList() - Method in interface com.aoapps.io.filesystems.RandomFailFileSystem.FailureProbabilities
- getListIterate() - Method in interface com.aoapps.io.filesystems.RandomFailFileSystem.FailureProbabilities
- getListIterateClose() - Method in interface com.aoapps.io.filesystems.RandomFailFileSystem.FailureProbabilities
- getLock() - Method in interface com.aoapps.io.filesystems.RandomFailFileSystem.FailureProbabilities
- getMessage() - Method in exception class com.aoapps.io.filesystems.RandomFailFileSystem.RandomFailIOException
- getName() - Method in class com.aoapps.io.filesystems.Path
-
Gets the name of this part of the path.
- getParent() - Method in class com.aoapps.io.filesystems.Path
-
Gets the parent of this path.
- getProbability() - Method in exception class com.aoapps.io.filesystems.RandomFailFileSystem.RandomFailIOException
- getSize() - Method in interface com.aoapps.io.filesystems.RandomFailFileSystem.FailureProbabilities
- getUnlink() - Method in interface com.aoapps.io.filesystems.RandomFailFileSystem.FailureProbabilities
H
- hashCode() - Method in class com.aoapps.io.filesystems.Path
- hasNext() - Method in class com.aoapps.io.filesystems.FileSystemWrapper.PathIteratorWrapper
- hasNext() - Method in class com.aoapps.io.filesystems.PathIterator
I
- InvalidPathException - Exception Class in com.aoapps.io.filesystems
-
Thrown when an invalid path is created, or when a path is invalid for a given file system.
- InvalidPathException(String) - Constructor for exception class com.aoapps.io.filesystems.InvalidPathException
- InvalidPathException(String, Throwable) - Constructor for exception class com.aoapps.io.filesystems.InvalidPathException
- isSingleRoot - Variable in class com.aoapps.io.filesystems.JavaFileSystem
- isValid() - Method in interface com.aoapps.io.filesystems.FileLock
-
Checks if the lock is valid.
J
- javaFileSystem - Variable in class com.aoapps.io.filesystems.JavaFileSystem
- JavaFileSystem - Class in com.aoapps.io.filesystems
-
Wraps any standard FileSystem implementation.
- JavaFileSystem(FileSystem) - Constructor for class com.aoapps.io.filesystems.JavaFileSystem
-
Creates a new Java filesystem.
- join(String[]) - Method in interface com.aoapps.io.filesystems.FileSystem
-
Joins the array of names to a path object.
- join(String[]) - Method in class com.aoapps.io.filesystems.FileSystemWrapper
L
- list(Path) - Method in interface com.aoapps.io.filesystems.FileSystem
-
Lists the children of the given path in no specific order.
- list(Path) - Method in class com.aoapps.io.filesystems.FileSystemWrapper
- list(Path) - Method in class com.aoapps.io.filesystems.JavaFileSystem
- list(Path) - Method in class com.aoapps.io.filesystems.RandomFailFileSystem
-
Random chance of fail on list as well as list iteration.
- list(Path) - Method in class com.aoapps.io.filesystems.TempFileSystem
- lock(Path) - Method in interface com.aoapps.io.filesystems.FileSystem
-
Locks a file in exclusive mode.
- lock(Path) - Method in class com.aoapps.io.filesystems.FileSystemWrapper
- lock(Path) - Method in class com.aoapps.io.filesystems.JavaFileSystem
- lock(Path) - Method in class com.aoapps.io.filesystems.RandomFailFileSystem
- lock(Path) - Method in class com.aoapps.io.filesystems.TempFileSystem
M
- MAX_PATH_NAME_LENGTH - Static variable in class com.aoapps.io.filesystems.JavaFileSystem
-
The maximum name length.
N
- next() - Method in class com.aoapps.io.filesystems.FileSystemWrapper.PathIteratorWrapper
P
- parent - Variable in class com.aoapps.io.filesystems.FileSystemWrapper.PathIteratorWrapper
- parsePath(String) - Method in interface com.aoapps.io.filesystems.FileSystem
-
Parses a string representation of a path.
- parsePath(String) - Method in class com.aoapps.io.filesystems.FileSystemWrapper
- Path - Class in com.aoapps.io.filesystems
-
The object representing the path to a file.
- Path(FileSystem) - Constructor for class com.aoapps.io.filesystems.Path
-
Constructs the root path for the given file system.
- Path(Path, String) - Constructor for class com.aoapps.io.filesystems.Path
-
Constructs a child path of the given parent.
- PathIterator - Class in com.aoapps.io.filesystems
-
Iterates over paths, must be closed when done.
- PathIterator() - Constructor for class com.aoapps.io.filesystems.PathIterator
- PathIteratorWrapper(FileSystemWrapper.PathWrapper, PathIterator) - Constructor for class com.aoapps.io.filesystems.FileSystemWrapper.PathIteratorWrapper
R
- randomFail(float) - Method in class com.aoapps.io.filesystems.RandomFailFileSystem
- RandomFailFileSystem - Class in com.aoapps.io.filesystems
-
A file system implementation that randomly fails, this is used by test suites to verify correct behavior under expected failure modes.
- RandomFailFileSystem(FileSystem) - Constructor for class com.aoapps.io.filesystems.RandomFailFileSystem
-
Uses default probabilities and a default fast pseudo-random number generator for non-cryptographic purposes.
- RandomFailFileSystem(FileSystem, RandomFailFileSystem.FailureProbabilities, Random) - Constructor for class com.aoapps.io.filesystems.RandomFailFileSystem
-
Creates a new random-fail filesystem, wrapping the given filesystem.
- RandomFailFileSystem.FailureProbabilities - Interface in com.aoapps.io.filesystems
-
Provides the failure probabilities.
- RandomFailFileSystem.RandomFailIOException - Exception Class in com.aoapps.io.filesystems
-
Thrown when a failure occurs randomly.
- ReadOnlyFileSystem - Class in com.aoapps.io.filesystems
-
Wraps a file system to make it read-only.
- ReadOnlyFileSystem(FileSystem) - Constructor for class com.aoapps.io.filesystems.ReadOnlyFileSystem
- remove() - Method in class com.aoapps.io.filesystems.PathIterator
-
The path iterators must be read-only.
S
- SEPARATOR - Static variable in class com.aoapps.io.filesystems.Path
- SEPARATOR_STRING - Static variable in class com.aoapps.io.filesystems.Path
- size(Path) - Method in interface com.aoapps.io.filesystems.FileSystem
-
Gets the size of the file system object at the given path.
- size(Path) - Method in class com.aoapps.io.filesystems.FileSystemWrapper
- size(Path) - Method in class com.aoapps.io.filesystems.JavaFileSystem
- size(Path) - Method in class com.aoapps.io.filesystems.RandomFailFileSystem
- size(Path) - Method in class com.aoapps.io.filesystems.TempFileSystem
T
- TempFileSystem - Class in com.aoapps.io.filesystems
-
A temporary file system stored in the Java heap.
- TempFileSystem() - Constructor for class com.aoapps.io.filesystems.TempFileSystem
-
Creates a new temp filesystem.
- TempFileSystem.FileSystemObject - Class in com.aoapps.io.filesystems
-
TODO.
- toString() - Method in class com.aoapps.io.filesystems.Path
-
Gets a string representation of the path.
- toString(Appendable) - Method in class com.aoapps.io.filesystems.Path
-
Gets a string representation of the path.
U
- unwrapPath(Path) - Method in class com.aoapps.io.filesystems.FileSystemWrapper
-
Unwraps a path.
W
- wrapPath(Path) - Method in class com.aoapps.io.filesystems.FileSystemWrapper
-
Wraps a path.
- wrappedFileSystem - Variable in class com.aoapps.io.filesystems.FileSystemWrapper
- wrappedIter - Variable in class com.aoapps.io.filesystems.FileSystemWrapper.PathIteratorWrapper
- wrappedPath - Variable in class com.aoapps.io.filesystems.FileSystemWrapper.PathWrapper
- wrapSubPath(FileSystemWrapper.PathWrapper, Path) - Method in class com.aoapps.io.filesystems.FileSystemWrapper
-
Wraps a new sub path.
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form