Package com.aoapps.io.filesystems.posix
Class ReadOnlyPosixFileSystem
java.lang.Object
com.aoapps.io.filesystems.FileSystemWrapper
com.aoapps.io.filesystems.ReadOnlyFileSystem
com.aoapps.io.filesystems.posix.ReadOnlyPosixFileSystem
- All Implemented Interfaces:
FileSystem,PosixFileSystem
Wraps a Unix 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
ConstructorsConstructorDescriptionReadOnlyPosixFileSystem(PosixFileSystem wrapped) Creates a newReadOnlyPosixFileSystem. -
Method Summary
Modifier and TypeMethodDescriptioncreateDirectory(Path path, int mode) Atomically creates a directory (must not have already existed) with the given permissions.createFile(Path path, int mode) Atomically creates an empty file (must not have already existed) with the given permissions.Delegates to the wrapped file system.Methods inherited from class com.aoapps.io.filesystems.ReadOnlyFileSystem
createDirectory, createFile, deleteMethods inherited from class com.aoapps.io.filesystems.FileSystemWrapper
checkSubPath, join, list, lock, parsePath, size, unwrapPath, wrapPath, wrapSubPathMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.aoapps.io.filesystems.FileSystem
createDirectory, createFile, delete, join, list, lock, parsePath, sizeMethods inherited from interface com.aoapps.io.filesystems.posix.PosixFileSystem
checkSubPath
-
Constructor Details
-
ReadOnlyPosixFileSystem
Creates a newReadOnlyPosixFileSystem.
-
-
Method Details
-
stat
Delegates to the wrapped file system.- Specified by:
statin interfacePosixFileSystem- Parameters:
path- Must be from this file system.- Throws:
IOException
-
createFile
Description copied from interface:PosixFileSystemAtomically creates an empty file (must not have already existed) with the given permissions.- Specified by:
createFilein interfacePosixFileSystem- Returns:
- returns the path
- Throws:
ReadOnlyFileSystemException
-
createDirectory
Description copied from interface:PosixFileSystemAtomically creates a directory (must not have already existed) with the given permissions.- Specified by:
createDirectoryin interfacePosixFileSystem- Returns:
- returns the path
- Throws:
ReadOnlyFileSystemException
-
