Home
last modified time | relevance | path

Searched refs:FileAttribute (Results 1 – 20 of 20) sorted by relevance

/libcore/ojluni/src/main/java/java/nio/file/
DTempFileHelper.java33 import java.nio.file.attribute.FileAttribute;
69 static final FileAttribute<Set<PosixFilePermission>> filePermissions =
71 static final FileAttribute<Set<PosixFilePermission>> dirPermissions =
84 FileAttribute<?>[] attrs) in create()
99 attrs = new FileAttribute<?>[1]; in create()
112 FileAttribute<?>[] copy = new FileAttribute<?>[attrs.length+1]; in create()
158 FileAttribute<?>[] attrs) in createTempFile()
170 FileAttribute<?>[] attrs) in createTempDirectory()
DFiles.java50 import java.nio.file.attribute.FileAttribute;
358 FileAttribute<?>... attrs)
627 public static Path createFile(Path path, FileAttribute<?>... attrs)
671 public static Path createDirectory(Path dir, FileAttribute<?>... attrs)
722 public static Path createDirectories(Path dir, FileAttribute<?>... attrs)
777 FileAttribute<?>... attrs)
849 FileAttribute<?>... attrs)
894 FileAttribute<?>... attrs)
947 FileAttribute<?>... attrs)
988 FileAttribute<?>... attrs)
[all …]
DSecureDirectoryStream.java150 FileAttribute<?>... attrs) in newByteChannel()
/libcore/ojluni/src/main/java/java/nio/channels/
DAsynchronousFileChannel.java29 import java.nio.file.attribute.FileAttribute;
244 FileAttribute<?>... attrs) in open()
252 private static final FileAttribute<?>[] NO_ATTRIBUTES = new FileAttribute[0];
DFileChannel.java33 import java.nio.file.attribute.FileAttribute;
283 FileAttribute<?>... attrs) in open()
291 private static final FileAttribute<?>[] NO_ATTRIBUTES = new FileAttribute[0];
/libcore/luni/src/test/java/libcore/java/nio/file/
DFilesTest.java41 import java.nio.file.attribute.FileAttribute;
151 FileAttribute<Set<PosixFilePermission>> attr = PosixFilePermissions.asFileAttribute(perm); in test_createFile$String$Attr()
157 FileAttribute<Set<PosixFilePermission>> attr1 = PosixFilePermissions.asFileAttribute(perm); in test_createFile$String$Attr()
173 FileAttribute<Set<PosixFilePermission>> attr = PosixFilePermissions.asFileAttribute(perm); in test_createDirectory_delegation()
202 FileAttribute<Set<PosixFilePermission>> attr = PosixFilePermissions.asFileAttribute(perm); in test_createDirectories$Path$Attr()
209 FileAttribute<Set<PosixFilePermission>> attr1 = PosixFilePermissions.asFileAttribute(perm); in test_createDirectories$Path$Attr()
226 FileAttribute<Set<PosixFilePermission>> attr = PosixFilePermissions.asFileAttribute(perm); in test_createDirectories$Path$Attr_NPE()
233 Files.createDirectories(dirPath, (FileAttribute<?>[]) null); in test_createDirectories$Path$Attr_NPE()
364 FileAttribute mockFileAttribute = mock(FileAttribute.class); in test_createSymbolicLink()
DDefaultFileSystemProviderTest.java41 import java.nio.file.attribute.FileAttribute;
427 FileAttribute<Set<PosixFilePermission>> attr = PosixFilePermissions.asFileAttribute(perm); in test_createDirectory$String$FileAttr()
433 FileAttribute<Set<PosixFilePermission>> attr1 = PosixFilePermissions.asFileAttribute(perm); in test_createDirectory$String$FileAttr()
443 FileAttribute<Set<PosixFilePermission>> attr = PosixFilePermissions.asFileAttribute(perm); in test_createDirectory$String$FileAttr_NPE()
450 provider.createDirectory(filesSetup.getTestPath(), (FileAttribute<?>[]) null); in test_createDirectory$String$FileAttr_NPE()
504 FileAttribute<Set<PosixFilePermission>> attr = PosixFilePermissions in test_createSymbolicLink$Path$Attr()
515 FileAttribute<Set<PosixFilePermission>> attr = PosixFilePermissions in test_createSymbolicLink$Path$Attr_NPE()
531 (FileAttribute<?>[]) null); in test_createSymbolicLink$Path$Attr_NPE()
DFiles2Test.java53 import java.nio.file.attribute.FileAttribute;
224 FileAttribute<Set<PosixFilePermission>> attr = PosixFilePermissions.asFileAttribute(perm); in test_getPosixFilePermissions()
240 FileAttribute<Set<PosixFilePermission>> attr = PosixFilePermissions.asFileAttribute(perm); in test_setPosixFilePermissions()
248 FileAttribute<Set<PosixFilePermission>> attr = PosixFilePermissions.asFileAttribute(perm); in test_setPosixFilePermissions_NPE()
1129 FileAttribute<Set<PosixFilePermission>> attr = PosixFilePermissions.asFileAttribute(perm); in test_newBufferedWriter()
1664 FileAttribute<Set<PosixFilePermission>> attr = PosixFilePermissions.asFileAttribute(perm); in test_createTempDirectory$Path$String$FileAttributes()
1686 Files.createTempDirectory(filesSetup.getTestDirPath(), tmpDir, (FileAttribute<?>) null); in test_createTempDirectory$Path$String$FileAttributes()
1694 FileAttribute<Set<PosixFilePermission>> attr = PosixFilePermissions.asFileAttribute(perm); in test_createTempDirectory$String$FileAttributes()
1713 Files.createTempDirectory(tmpDir, (FileAttribute<?>) null); in test_createTempDirectory$String$FileAttributes()
1721 FileAttribute<Set<PosixFilePermission>> attr = PosixFilePermissions.asFileAttribute(perm); in test_createTempFile$Path$String$String$FileAttributes()
[all …]
DDefaultFileSystemProvider2Test.java43 import java.nio.file.attribute.FileAttribute;
531 FileAttribute<FileTime> unsupportedAttr = new MockFileAttribute<>( in test_newFileChannel_withFileAttributes()
535 FileAttribute<Set<PosixFilePermission>> supportedAttr = in test_newFileChannel_withFileAttributes()
604 (FileAttribute<?>) null); in test_newFileChannel_NPE()
672 static class MockFileAttribute<T> implements FileAttribute {
/libcore/ojluni/src/main/java/java/nio/file/spi/
DFileSystemProvider.java473 FileAttribute<?>... attrs) in newFileChannel()
522 FileAttribute<?>... attrs) in newAsynchronousFileChannel()
566 Set<? extends OpenOption> options, FileAttribute<?>... attrs) throws IOException; in newByteChannel()
618 public abstract void createDirectory(Path dir, FileAttribute<?>... attrs) in createDirectory()
651 public void createSymbolicLink(Path link, Path target, FileAttribute<?>... attrs) in createSymbolicLink()
/libcore/luni/src/test/filesystems/src/mypackage/
DMockFileSystemProvider.java31 import java.nio.file.attribute.FileAttribute;
66 FileAttribute<?>[] attrs) throws IOException { in newByteChannel()
77 public void createDirectory(Path dir, FileAttribute<?>[] attrs) throws IOException { in createDirectory()
/libcore/ojluni/src/main/java/sun/nio/fs/
DUnixFileModeAttribute.java69 static int toUnixMode(int defaultMode, FileAttribute<?>... attrs) { in toUnixMode()
71 for (FileAttribute<?> attr: attrs) { in toUnixMode()
DUnixFileSystemProvider.java168 FileAttribute<?>... attrs) in newFileChannel()
186FileAttribute<?>... attrs) throws IOException in newAsynchronousFileChannel()
205 FileAttribute<?>... attrs) in newByteChannel()
379 public void createDirectory(Path obj, FileAttribute<?>... attrs) in createDirectory()
440 public void createSymbolicLink(Path obj1, Path obj2, FileAttribute<?>... attrs) in createSymbolicLink()
DUnixSecureDirectoryStream.java155 FileAttribute<?>... attrs) in newByteChannel()
/libcore/ojluni/src/main/java/java/nio/file/attribute/
DFileAttribute.java40 public interface FileAttribute<T> { interface
DPosixFilePermissions.java158 public static FileAttribute<Set<PosixFilePermission>>
169 return new FileAttribute<Set<PosixFilePermission>>() { in asFileAttribute()
/libcore/luni/src/test/java/libcore/java/nio/channels/
DFileChannelTest.java35 import java.nio.file.attribute.FileAttribute;
307 FileAttribute mockFileAttribute1 = mock(FileAttribute.class); in test_open_Path_Set_FileAttributes()
308 FileAttribute mockFileAttribute2 = mock(FileAttribute.class); in test_open_Path_Set_FileAttributes()
/libcore/ojluni/src/test/java/nio/file/attribute/
DPosixFileAttributeViewTest.java103 FileAttribute<Set<PosixFilePermission>> attr = in createWithPermissions()
/libcore/api/
Dcurrent.txt5999 …ption>, java.util.concurrent.ExecutorService, java.nio.file.attribute.FileAttribute<?>...) throws …
6112 …util.Set<? extends java.nio.file.OpenOption>, java.nio.file.attribute.FileAttribute<?>...) throws …
6709 …le.Path createDirectories(java.nio.file.Path, java.nio.file.attribute.FileAttribute<?>...) throws …
6710 …file.Path createDirectory(java.nio.file.Path, java.nio.file.attribute.FileAttribute<?>...) throws …
6711 ….nio.file.Path createFile(java.nio.file.Path, java.nio.file.attribute.FileAttribute<?>...) throws …
6713 …cLink(java.nio.file.Path, java.nio.file.Path, java.nio.file.attribute.FileAttribute<?>...) throws …
6714 …eateTempDirectory(java.nio.file.Path, String, java.nio.file.attribute.FileAttribute<?>...) throws …
6715 …ava.nio.file.Path createTempDirectory(String, java.nio.file.attribute.FileAttribute<?>...) throws …
6716 …eTempFile(java.nio.file.Path, String, String, java.nio.file.attribute.FileAttribute<?>...) throws …
6717 ….nio.file.Path createTempFile(String, String, java.nio.file.attribute.FileAttribute<?>...) throws …
[all …]
/libcore/
Dopenjdk_java_files.bp509 "ojluni/src/main/java/java/nio/file/attribute/FileAttribute.java",