Home
last modified time | relevance | path

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

/external/jimfs/jimfs/src/test/java/com/google/common/jimfs/
DAttributeServiceTest.java250 service.getFileAttributeView(fileLookup, TestAttributeView.class).readAttributes(); in testGetFileAttributeView()
274 ImmutableMap<String, Object> map = service.readAttributes(file, "test:foo,bar,baz"); in testReadAttributes_asMap()
279 map = service.readAttributes(file, "test:*"); in testReadAttributes_asMap()
297 map = service.readAttributes(file, "basic:*"); in testReadAttributes_asMap()
317 service.readAttributes(file, "basic:fileKey,isOther,*,creationTime"); in testReadAttributes_asMap_failsForInvalidAttributes()
324 service.readAttributes(file, "basic:fileKey,isOther,foo"); in testReadAttributes_asMap_failsForInvalidAttributes()
336 BasicFileAttributes basicAttrs = service.readAttributes(file, BasicFileAttributes.class); in testReadAttributes_asObject()
341 TestAttributes testAttrs = service.readAttributes(file, TestAttributes.class); in testReadAttributes_asObject()
347 assertThat(service.readAttributes(file, TestAttributes.class).baz()).isEqualTo(100); in testReadAttributes_asObject()
354 service.readAttributes(file, PosixFileAttributes.class); in testReadAttributes_failsForUnsupportedAttributesType()
DDosAttributeProviderTest.java82 DosFileAttributes attrs = view.readAttributes(); in testView()
97 attrs = view.readAttributes(); in testView()
104 assertThat(view.readAttributes().lastModifiedTime()).isEqualTo(FileTime.fromMillis(0L)); in testView()
109 DosFileAttributes attrs = provider.readAttributes(file); in testAttributes()
117 attrs = provider.readAttributes(file); in testAttributes()
DBasicAttributeProviderTest.java121 BasicFileAttributes attrs = view.readAttributes(); in testView()
130 attrs = view.readAttributes(); in testView()
137 attrs = view.readAttributes(); in testView()
145 BasicFileAttributes attrs = provider.readAttributes(file); in testAttributes()
DPosixAttributeProviderTest.java96 PosixFileAttributes attrs = view.readAttributes(); in testView()
107 assertThat(view.readAttributes().group()).isEqualTo(createGroupPrincipal("root")); in testView()
111 assertThat(view.readAttributes().permissions()) in testView()
119 PosixFileAttributes attrs = provider.readAttributes(file); in testAttributes()
DTestAttributeProvider.java110 public TestAttributes readAttributes(File file) { in readAttributes() method in TestAttributeProvider
130 public Attributes readAttributes() throws IOException { in readAttributes() method in TestAttributeProvider.View
DTestAttributeView.java25 TestAttributes readAttributes() throws IOException; in readAttributes() method
DJimfsFileSystemCloseTest.java227 view.readAttributes(); in testOpenFileAttributeViewsThrow()
409 Files.readAttributes(file, "basic:size,lastModifiedTime"); in testFilesMethodsThrow()
415 Files.readAttributes(file, BasicFileAttributes.class); in testFilesMethodsThrow()
DJimfsUnixLikeFileSystemTest.java1583 BasicFileAttributes attributes = Files.readAttributes(bar, BasicFileAttributes.class); in testCopy_withCopyAttributes()
1593 attributes = Files.readAttributes(baz, BasicFileAttributes.class); in testCopy_withCopyAttributes()
2016 .readAttributes() in testSecureDirectoryStream()
2023 .readAttributes() in testSecureDirectoryStream()
2046 .readAttributes() in testSecureDirectoryStream()
2053 .readAttributes() in testSecureDirectoryStream()
2063 .readAttributes() in testSecureDirectoryStream()
2070 .readAttributes() in testSecureDirectoryStream()
2091 .readAttributes() in testSecureDirectoryStream()
2205 view1.readAttributes(); in testClosedSecureDirectoryStreamAttributeViewAndIterator()
[all …]
DAbstractJimfsIntegrationTest.java90 return Files.readAttributes(path, BasicFileAttributes.class); in attrs()
/external/jimfs/jimfs/src/main/java/com/google/common/jimfs/
DJimfsFileStore.java182 ImmutableMap<String, Object> readAttributes(File file, String attributes) { in readAttributes() method in JimfsFileStore
184 return this.attributes.readAttributes(file, attributes); in readAttributes()
192 <A extends BasicFileAttributes> A readAttributes(File file, Class<A> type) { in readAttributes() method in JimfsFileStore
194 return attributes.readAttributes(file, type); in readAttributes()
DJimfsFileSystemProvider.java306 return view.readAttributes(checkedPath, DosFileAttributes.class, Options.NOFOLLOW_LINKS) in isHidden()
333 public <A extends BasicFileAttributes> A readAttributes( in readAttributes() method in JimfsFileSystemProvider
337 .readAttributes(checkedPath, type, Options.getLinkOptions(options)); in readAttributes()
341 public Map<String, Object> readAttributes(Path path, String attributes, LinkOption... options) in readAttributes() method in JimfsFileSystemProvider
345 .readAttributes(checkedPath, attributes, Options.getLinkOptions(options)); in readAttributes()
DDosAttributeProvider.java113 public DosFileAttributes readAttributes(File file) { in readAttributes() method in DosAttributeProvider
133 public DosFileAttributes readAttributes() throws IOException { in readAttributes() method in DosAttributeProvider.View
DBasicAttributeProvider.java128 public BasicFileAttributes readAttributes(File file) { in readAttributes() method in BasicAttributeProvider
145 public BasicFileAttributes readAttributes() throws IOException { in readAttributes() method in BasicAttributeProvider.View
DPosixAttributeProvider.java185 public PosixFileAttributes readAttributes(File file) { in readAttributes() method in PosixAttributeProvider
208 public PosixFileAttributes readAttributes() throws IOException { in readAttributes() method in PosixAttributeProvider.View
DSystemJimfsFileSystemProvider.java261 public <A extends BasicFileAttributes> A readAttributes(
267 public Map<String, Object> readAttributes(Path path, String attributes, LinkOption... options)
DAttributeService.java310 public ImmutableMap<String, Object> readAttributes(File file, String attributes) { in readAttributes() method in AttributeService
345 public <A extends BasicFileAttributes> A readAttributes(File file, Class<A> type) { in readAttributes() method in AttributeService
348 return (A) provider.readAttributes(file); in readAttributes()
DFileSystemView.java715 public <A extends BasicFileAttributes> A readAttributes(
718 return store.readAttributes(file, type);
722 public ImmutableMap<String, Object> readAttributes(
725 return store.readAttributes(file, attributes);
DAttributeProvider.java122 public BasicFileAttributes readAttributes(File file) { in readAttributes() method in AttributeProvider
/external/guava/guava/src/com/google/common/io/
DMoreFiles.java119 private BasicFileAttributes readAttributes() throws IOException { in readAttributes() method in MoreFiles.PathByteSource
120 return Files.readAttributes( in readAttributes()
130 attrs = readAttributes(); in sizeIfKnown()
147 BasicFileAttributes attrs = readAttributes(); in size()
341 .readAttributes()
/external/apache-commons-io/src/main/java/org/apache/commons/io/file/
DFilesUncheck.java571 …public static <A extends BasicFileAttributes> A readAttributes(final Path path, final Class<A> typ… in readAttributes() method in FilesUncheck
572 return Uncheck.apply(Files::readAttributes, path, type, options); in readAttributes()
584 …public static Map<String, Object> readAttributes(final Path path, final String attributes, final L… in readAttributes() method in FilesUncheck
585 return Uncheck.apply(Files::readAttributes, path, attributes, options); in readAttributes()
DPathUtils.java1226 …public static <A extends BasicFileAttributes> A readAttributes(final Path path, final Class<A> typ…
1228 return path == null ? null : Uncheck.apply(Files::readAttributes, path, type, options);
1246 return Files.readAttributes(path, BasicFileAttributes.class);
1259 return readAttributes(path, BasicFileAttributes.class, options);
1287 return readAttributes(path, DosFileAttributes.class, options);
1318 return readAttributes(path, PosixFileAttributes.class, options);
1732 …lk(final Path start, final PathFilter pathFilter, final int maxDepth, final boolean readAttributes,
1735 ….filter(path -> pathFilter.accept(path, readAttributes ? readBasicFileAttributesUnchecked(path) : …
/external/apache-commons-bcel/src/main/java/org/apache/bcel/classfile/
DClassParser.java155 readAttributes(); in parse()
202 private void readAttributes() throws IOException, ClassFormatException { in readAttributes() method in ClassParser
/external/apache-commons-io/src/test/java/org/apache/commons/io/file/
DFilesUncheckTest.java368 …assertNotNull(FilesUncheck.readAttributes(FILE_PATH_EMPTY, BasicFileAttributes.class, LinkOption.N… in testReadAttributesPathClassOfALinkOptionArray()
373 …assertNotNull(FilesUncheck.readAttributes(FILE_PATH_EMPTY, "basic:lastModifiedTime", LinkOption.NO… in testReadAttributesPathStringLinkOptionArray()
DPathUtilsTest.java395 … assertEquals(isPosix, PathUtils.readAttributes(current(), PosixFileAttributes.class) != null); in testReadAttributesPosix()
458 assertTrue(dosFileAttributeView.readAttributes().isReadOnly()); in testSetReadOnlyFile()