Lines Matching defs: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 java.nio.file.attribute.*;
30 import java.nio.file.spi.FileTypeDetector;
60 * Constructs a new file system using the given default directory.
66 return "file";
115 UnixPath file = UnixPath.toUnixPath(obj);
118 return (V) UnixFileAttributeViews.createBasicView(file, followLinks);
120 return (V) UnixFileAttributeViews.createPosixView(file, followLinks);
122 return (V) UnixFileAttributeViews.createOwnerView(file, followLinks);
130 public <A extends BasicFileAttributes> A readAttributes(Path file,
144 return (A) getFileAttributeView(file, view, options).readAttributes();
152 UnixPath file = UnixPath.toUnixPath(obj);
155 return UnixFileAttributeViews.createBasicView(file, followLinks);
157 return UnixFileAttributeViews.createPosixView(file, followLinks);
159 return UnixFileAttributeViews.createUnixView(file, followLinks);
161 return UnixFileAttributeViews.createOwnerView(file, followLinks);
171 UnixPath file = checkPath(obj);
175 return UnixChannelFactory.newFileChannel(file, options, mode);
177 x.rethrowAsIOException(file);
188 UnixPath file = checkPath(obj);
194 .newAsynchronousFileChannel(file, options, mode, pool);
196 x.rethrowAsIOException(file);
208 UnixPath file = UnixPath.toUnixPath(obj);
212 return UnixChannelFactory.newFileChannel(file, options, mode);
214 x.rethrowAsIOException(file);
221 UnixPath file = UnixPath.toUnixPath(obj);
222 file.checkDelete();
224 // need file attributes to know if file is directory
227 attrs = UnixFileAttributes.get(file, false);
229 rmdir(file);
231 unlink(file);
235 // no-op if file does not exist
242 throw new DirectoryNotEmptyException(file.getPathForExceptionMessage());
244 x.rethrowAsIOException(file);
269 UnixPath file = UnixPath.toUnixPath(obj);
290 file.checkRead();
294 file.checkWrite();
301 sm.checkExec(file.getPathForPermissionCheck());
306 access(file, mode);
308 exc.rethrowAsIOException(file);
346 UnixPath file = UnixPath.toUnixPath(obj);
347 file.checkRead();
348 UnixPath name = file.getFileName();
355 * Returns a FileStore to represent the file system where the given file
362 // Android-changed: Complete information about file systems is neither available to regular
365 // UnixPath file = UnixPath.toUnixPath(obj);
369 // file.checkRead();
371 // return getFileStore(file);
415 // open directory and dup file descriptor for use by
446 throw new UnsupportedOperationException("Initial file attributes" +
511 public String implProbeContentType(Path file) {
518 * Returns a {@code FileTypeDetector} that chains the given array of file
521 * first to detect the file type is returned.
526 protected String implProbeContentType(Path file) throws IOException {
528 String result = detector.implProbeContentType(file);