java.lang.Object
com.aoapps.io.filesystems.FileSystemWrapper
com.aoapps.io.filesystems.ReadOnlyFileSystem
- All Implemented Interfaces:
FileSystem
Wraps a file system to make it read-only.
- Author:
- AO Industries, Inc.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.aoapps.io.filesystems.FileSystemWrapper
FileSystemWrapper.PathIteratorWrapper, FileSystemWrapper.PathWrapper -
Field Summary
Fields inherited from class com.aoapps.io.filesystems.FileSystemWrapper
wrappedFileSystem -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateDirectory(Path path) Atomically creates a directory (must not have already existed).createFile(Path path) Atomically creates an empty file (must not have already existed).voidDeletes the file system object at the given path.Methods inherited from class com.aoapps.io.filesystems.FileSystemWrapper
checkSubPath, join, list, lock, parsePath, size, unwrapPath, wrapPath, wrapSubPath
-
Constructor Details
-
ReadOnlyFileSystem
-
-
Method Details
-
delete
Description copied from interface:FileSystemDeletes the file system object at the given path.- Specified by:
deletein interfaceFileSystem- Overrides:
deletein classFileSystemWrapper- Parameters:
path- Must be from this file system.- Throws:
ReadOnlyFileSystemException
-
createFile
Description copied from interface:FileSystemAtomically creates an empty file (must not have already existed).- Specified by:
createFilein interfaceFileSystem- Overrides:
createFilein classFileSystemWrapper- Returns:
- returns the path
- Throws:
ReadOnlyFileSystemException
-
createDirectory
Description copied from interface:FileSystemAtomically creates a directory (must not have already existed).- Specified by:
createDirectoryin interfaceFileSystem- Overrides:
createDirectoryin classFileSystemWrapper- Returns:
- returns the path
- Throws:
ReadOnlyFileSystemException
-
