Java Code Examples for java.nio.file.ReadOnlyFileSystemException

The following examples show how to use java.nio.file.ReadOnlyFileSystemException. These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source Project: Bytecoder   Source File: JrtFileSystem.java    License: Apache License 2.0 4 votes vote down vote up
static ReadOnlyFileSystemException readOnly() {
    return new ReadOnlyFileSystemException();
}
 
Example 2
Source Project: openjdk-jdk9   Source File: JrtFileSystem.java    License: GNU General Public License v2.0 4 votes vote down vote up
static ReadOnlyFileSystemException readOnly() {
    return new ReadOnlyFileSystemException();
}
 
Example 3
Source Project: jsr203-hadoop   Source File: HadoopFileSystem.java    License: Apache License 2.0 4 votes vote down vote up
private void checkWritable() throws IOException {
    if (readOnly)
        throw new ReadOnlyFileSystemException();
}