Home
last modified time | relevance | path

Searched refs:readAttributes (Results 1 – 25 of 26) sorted by relevance

12

/libcore/ojluni/src/test/java/nio/file/attribute/
DBasicFileAttributeViewTest.java53 BasicFileAttributes attrs = Files.readAttributes(dir, BasicFileAttributes.class); in checkAttributesOfDirectory()
68 BasicFileAttributes attrs = Files.readAttributes(file, BasicFileAttributes.class); in checkAttributesOfFile()
84 BasicFileAttributes dirAttrs = Files.readAttributes(dir, BasicFileAttributes.class); in checkAttributesOfFile()
87 attrs = view.readAttributes(); in checkAttributesOfFile()
100 Files.readAttributes(link, BasicFileAttributes.class, LinkOption.NOFOLLOW_LINKS); in checkAttributesOfLink()
DPosixFileAttributeViewTest.java110 .readAttributes() in createWithPermissions()
121 .readAttributes() in createWithPermissions()
144 Set<PosixFilePermission> save = view.readAttributes() in permissionTests()
188 .readAttributes(); in permissionTests()
253 PosixFileAttributes attrs = view.readAttributes(); in ownerTests()
284 PosixFileAttributes attrs = Files.readAttributes(dir, PosixFileAttributes.class); in lookupPrincipalTests()
DBasicFileAttributeViewCreationTimeTest.java52 return Files.readAttributes(file, BasicFileAttributes.class).creationTime(); in creationTime()
/libcore/luni/src/test/java/libcore/java/nio/file/
DDefaultSecureDirectoryStreamTest.java402 assertFalse(fileAttributeView.readAttributes().isRegularFile()); in test_getFileAttributeView()
403 assertTrue(fileAttributeView.readAttributes().isDirectory()); in test_getFileAttributeView()
404 assertFalse(fileAttributeView.readAttributes().isSymbolicLink()); in test_getFileAttributeView()
416 fileAttributeView.readAttributes(); in test_getFileAttributeView()
429 assertFalse(fileAttributeView.readAttributes().isRegularFile()); in test_getFileAttributeView_Path()
430 assertTrue(fileAttributeView.readAttributes().isDirectory()); in test_getFileAttributeView_Path()
431 assertFalse(fileAttributeView.readAttributes().isSymbolicLink()); in test_getFileAttributeView_Path()
436 assertTrue(fileAttributeView.readAttributes().isRegularFile()); in test_getFileAttributeView_Path()
437 assertFalse(fileAttributeView.readAttributes().isDirectory()); in test_getFileAttributeView_Path()
438 assertFalse(fileAttributeView.readAttributes().isSymbolicLink()); in test_getFileAttributeView_Path()
[all …]
DDefaultFileSystemProvider2Test.java320 assertTrue(fileAttributeView.readAttributes().isRegularFile()); in test_getFileAttributeView()
321 assertFalse(fileAttributeView.readAttributes().isDirectory()); in test_getFileAttributeView()
342 .readAttributes(filesSetup.getDataFilePath(), in test_readAttributes()
349 provider.readAttributes(filesSetup.getTestPath(), BasicFileAttributes.class); in test_readAttributes()
357 provider.readAttributes(filesSetup.getDataFilePath(), in test_readAttributes_NPE()
363 provider.readAttributes(null, BasicFileAttributes.class); in test_readAttributes_NPE()
/libcore/ojluni/src/main/java/sun/nio/fs/
DUnixFileAttributeViews.java48 public BasicFileAttributes readAttributes() throws IOException { in readAttributes() method in UnixFileAttributeViews.Basic
202 public Map<String,Object> readAttributes(String[] requested) in readAttributes() method in UnixFileAttributeViews.Posix
207 PosixFileAttributes attrs = readAttributes(); in readAttributes()
213 public UnixFileAttributes readAttributes() throws IOException { in readAttributes() method in UnixFileAttributeViews.Posix
279 return readAttributes().owner(); in getOwner()
340 public Map<String,Object> readAttributes(String[] requested) in readAttributes() method in UnixFileAttributeViews.Unix
345 UnixFileAttributes attrs = readAttributes(); in readAttributes()
DLinuxFileSystemProvider.java99 public <A extends BasicFileAttributes> A readAttributes(Path file, in readAttributes() method in LinuxFileSystemProvider
115 return super.readAttributes(file, type, options); in readAttributes()
DFileOwnerAttributeViewImpl.java73 public Map<String,Object> readAttributes(String[] attributes) throws IOException { in readAttributes() method in FileOwnerAttributeViewImpl
89 return ((PosixFileAttributeView)view).readAttributes().owner(); in getOwner()
DUnixFileStore.java107 private UnixFileStoreAttributes readAttributes() throws IOException { in readAttributes() method in UnixFileStore
118 UnixFileStoreAttributes attrs = readAttributes(); in getTotalSpace()
124 UnixFileStoreAttributes attrs = readAttributes(); in getUsableSpace()
130 UnixFileStoreAttributes attrs = readAttributes(); in getUnallocatedSpace()
DAbstractFileSystemProvider.java83 …public final Map<String,Object> readAttributes(Path file, String attributes, LinkOption... options) in readAttributes() method in AbstractFileSystemProvider
92 return view.readAttributes(s[1].split(",")); in readAttributes()
DDynamicFileAttributeView.java45 Map<String,Object> readAttributes(String[] attributes) throws IOException; in readAttributes() method
DLinuxDosFileAttributeView.java98 public Map<String,Object> readAttributes(String[] attributes) in readAttributes() method in LinuxDosFileAttributeView
103 DosFileAttributes attrs = readAttributes(); in readAttributes()
117 public DosFileAttributes readAttributes() throws IOException { in readAttributes() method in LinuxDosFileAttributeView
DAbstractBasicFileAttributeView.java163 public Map<String,Object> readAttributes(String[] requested) in readAttributes() method in AbstractBasicFileAttributeView
168 addRequestedBasicAttributes(readAttributes(), builder); in readAttributes()
DAbstractUserDefinedFileAttributeView.java76 public final Map<String,Object> readAttributes(String[] attributes) in readAttributes() method in AbstractUserDefinedFileAttributeView
DUnixSecureDirectoryStream.java369 public BasicFileAttributes readAttributes() throws IOException { in readAttributes() method in UnixSecureDirectoryStream.BasicFileAttributeViewImpl
468 public PosixFileAttributes readAttributes() throws IOException { in readAttributes() method in UnixSecureDirectoryStream.PosixFileAttributeViewImpl
548 return readAttributes().owner(); in getOwner()
DUnixFileSystemProvider.java130 public <A extends BasicFileAttributes> A readAttributes(Path file, in readAttributes() method in UnixFileSystemProvider
144 return (A) getFileAttributeView(file, view, options).readAttributes(); in readAttributes()
DPollingWatchService.java147 BasicFileAttributes attrs = Files.readAttributes(path, BasicFileAttributes.class);
/libcore/ojluni/src/main/java/java/nio/file/attribute/
DBasicFileAttributeView.java124 BasicFileAttributes readAttributes() throws IOException; in readAttributes() method
DDosFileAttributeView.java98 DosFileAttributes readAttributes() throws IOException; in readAttributes() method
DPosixFileAttributeView.java157 PosixFileAttributes readAttributes() throws IOException; in readAttributes() method
/libcore/ojluni/src/main/java/java/nio/file/
DFiles.java1732 public static <A extends BasicFileAttributes> A readAttributes(Path path,
1737 return provider(path).readAttributes(path, type, options);
1869 Map<String,Object> map = readAttributes(path, attribute, options);
1960 public static Map<String,Object> readAttributes(Path path, String attributes,
1964 return provider(path).readAttributes(path, attributes, options);
2004 return readAttributes(path, PosixFileAttributes.class, options).permissions();
2153 return readAttributes(path,
2192 return readAttributes(path, BasicFileAttributes.class, options).isDirectory();
2229 return readAttributes(path, BasicFileAttributes.class, options).isRegularFile();
2266 return readAttributes(path, BasicFileAttributes.class, options).lastModifiedTime();
[all …]
DFileTreeWalker.java219 attrs = Files.readAttributes(file, BasicFileAttributes.class, linkOptions); in getAttributes()
225 attrs = Files.readAttributes(file, in getAttributes()
DCopyMoveHelper.java109 BasicFileAttributes attrs = Files.readAttributes(source, in copyToForeignTarget()
/libcore/luni/src/test/filesystems/src/mypackage/
DMockFileSystemProvider.java123 public <A extends BasicFileAttributes> A readAttributes(Path path, Class<A> type, in readAttributes() method in MockFileSystemProvider
129 public Map<String, Object> readAttributes(Path path, String attributes, in readAttributes() method in MockFileSystemProvider
/libcore/ojluni/src/main/java/java/nio/file/spi/
DFileSystemProvider.java1033 readAttributes(Path path, Class<A> type, LinkOption... options) throws IOException; in readAttributes() method in FileSystemProvider
1064 public abstract Map<String,Object> readAttributes(Path path, String attributes, in readAttributes() method in FileSystemProvider

12