java.nio.file.ReadOnlyFileSystemException Java Examples

The following examples show how to use java.nio.file.ReadOnlyFileSystemException. 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   Author: mirkosertic   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   Author: AdoptOpenJDK   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   Author: damiencarol   File: HadoopFileSystem.java    License: Apache License 2.0 4 votes vote down vote up
private void checkWritable() throws IOException {
    if (readOnly)
        throw new ReadOnlyFileSystemException();
}