- All Known Implementing Classes:
Every file system is forced to be case-sensitive, even if there is great overhead in doing so.
We know this is in some ways redundant with the
package released in Java 1.7. We are looking for something with a much
different (and narrower) focus, such as hiding differences between platforms
and trying to hide security gotchas.
- AO Industries, Inc.
Method SummaryModifier and TypeMethodDescription
voidChecks that a given path name is acceptable to this file system.Atomically creates a directory (must not have already existed).Atomically creates an empty file (must not have already existed).
voidDeletes the file system object at the given path.
default PathJoins the array of names to a path object.Lists the children of the given path in no specific order.Locks a file in exclusive mode.
default PathParses a string representation of a path.
longGets the size of the file system object at the given path.
checkSubPathChecks that a given path name is acceptable to this file system. Regular path rules are already checked, this is for additional file system specific constraints. The root path is never passed here.
name- The path to check, must be from this file system.
InvalidPathException- If the path is not acceptable
joinJoins the array of names to a path object. Stops at the end of the array or the first
parsePathParses a string representation of a path.
listLists the children of the given path in no specific order. It is possible that paths may be returned that no longer exist. It is also possible that new file system objects created after the beginning of iteration are not returned.
deleteDeletes the file system object at the given path.
sizeGets the size of the file system object at the given path.
createFileAtomically creates an empty file (must not have already existed).
createDirectoryAtomically creates a directory (must not have already existed).
lockLocks a file in exclusive mode. File range and shared locks not currently supported. The lock must be closed to unlock, usually in a try/finally or try-with-resources block. The locks are not reentrant, attempting to obtain the lock from the same thread will result in deadlock.