Lines Matching refs:file
8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
14 * version 2 for more details (a copy is included in the LICENSE file that
28 import java.nio.file.*;
72 private IOException translateToIOException(String file, String other) {
79 return new NoSuchFileException(file, other, null);
81 return new FileAlreadyExistsException(file, other, null);
83 return new AccessDeniedException(file, other, null);
86 return new FileSystemException(file, other, errorString());
89 void rethrowAsIOException(String file) throws IOException {
90 IOException x = translateToIOException(file, null);
94 void rethrowAsIOException(WindowsPath file, WindowsPath other) throws IOException {
95 String a = (file == null) ? null : file.getPathForExceptionMessage();
101 void rethrowAsIOException(WindowsPath file) throws IOException {
102 rethrowAsIOException(file, null);
105 IOException asIOException(WindowsPath file) {
106 return translateToIOException(file.getPathForExceptionMessage(), null);