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.*;
29 import static java.nio.file.StandardOpenOption.*;
49 private String join(String file, String name) {
52 return file + ":" + name;
54 private String join(WindowsPath file, String name) throws WindowsException {
55 return join(file.getPathForWin32Calls(), name);
58 private final WindowsPath file;
61 WindowsUserDefinedFileAttributeView(WindowsPath file, boolean followLinks) {
62 this.file = file;
66 // enumerates the file streams using FindFirstStream/FindNextStream APIs.
70 FirstStream first = FindFirstStream(file.getPathForWin32Calls());
89 x.rethrowAsIOException(file);
94 // enumerates the file streams by reading the stream headers using
100 if (!followLinks && file.getFileSystem().supportsLinks())
103 handle = CreateFile(file.getPathForWin32Calls(),
105 FILE_SHARE_READ, // no write as we depend on file size
109 x.rethrowAsIOException(file);
202 checkAccess(file.getPathForPermissionCheck(), true, false);
204 if (file.getFileSystem().supportsStreamEnumeration()) {
214 checkAccess(file.getPathForPermissionCheck(), true, false);
224 .newFileChannel(join(file, name), null, opts, 0L);
226 x.rethrowAsIOException(join(file.getPathForPermissionCheck(), name));
241 checkAccess(file.getPathForPermissionCheck(), true, false);
251 .newFileChannel(join(file, name), null, opts, 0L);
253 x.rethrowAsIOException(join(file.getPathForPermissionCheck(), name));
276 checkAccess(file.getPathForPermissionCheck(), false, true);
282 * replace the named stream. Opening the file without sharing options
292 handle = CreateFile(file.getPathForWin32Calls(),
298 x.rethrowAsIOException(file);
310 .newFileChannel(join(file, name), null, opts, 0L);
312 x.rethrowAsIOException(join(file.getPathForPermissionCheck(), name));
332 checkAccess(file.getPathForPermissionCheck(), false, true);
334 String path = WindowsLinkSupport.getFinalPath(file, followLinks);