Home
last modified time | relevance | path

Searched refs:OpenOption (Results 1 – 21 of 21) sorted by relevance

/libcore/ojluni/src/main/java/java/nio/file/spi/
DFileSystemProvider.java373 public InputStream newInputStream(Path path, OpenOption... options) in newInputStream()
377 for (OpenOption opt: options) { in newInputStream()
418 public OutputStream newOutputStream(Path path, OpenOption... options) in newOutputStream()
422 Set<OpenOption> opts = new HashSet<OpenOption>(len + 3); in newOutputStream()
427 for (OpenOption opt: options) { in newOutputStream()
472 Set<? extends OpenOption> options, in newFileChannel()
520 Set<? extends OpenOption> options, in newAsynchronousFileChannel()
566 Set<? extends OpenOption> options, FileAttribute<?>... attrs) throws IOException; in newByteChannel()
/libcore/ojluni/src/main/java/com/sun/nio/file/
DExtendedOpenOption.java28 import java.nio.file.OpenOption;
37 public enum ExtendedOpenOption implements OpenOption {
/libcore/ojluni/src/main/java/java/nio/channels/
DAsynchronousFileChannel.java242 Set<? extends OpenOption> options, in open()
296 public static AsynchronousFileChannel open(Path file, OpenOption... options) in open()
299 Set<OpenOption> set = new HashSet<OpenOption>(options.length); in open()
DFileChannel.java282 Set<? extends OpenOption> options, in open()
330 public static FileChannel open(Path path, OpenOption... options) in open()
333 Set<OpenOption> set = new HashSet<OpenOption>(options.length); in open()
/libcore/ojluni/src/main/java/sun/nio/fs/
DUnixChannelFactory.java68 static Flags toFlags(Set<? extends OpenOption> options) { in toFlags()
70 for (OpenOption option: options) { in toFlags()
115 Set<? extends OpenOption> options, in newFileChannel()
144 Set<? extends OpenOption> options, in newFileChannel()
155 Set<? extends OpenOption> options, in newAsynchronousFileChannel()
DUnixFileSystemProvider.java167 Set<? extends OpenOption> options, in newFileChannel()
184 Set<? extends OpenOption> options, in newAsynchronousFileChannel()
204 Set<? extends OpenOption> options, in newByteChannel()
DUnixSecureDirectoryStream.java154 Set<? extends OpenOption> options, in newByteChannel()
/libcore/luni/src/test/java/libcore/java/nio/file/
DFilesSetup.java33 import java.nio.file.OpenOption;
147 static void writeToFile(Path file, String data, OpenOption... option) throws IOException { in writeToFile()
194 enum NonStandardOption implements CopyOption, OpenOption {
DDefaultFileSystemProviderTest.java37 import java.nio.file.OpenOption;
141 (OpenOption[]) null)) { in test_newInputStream_NPE()
284 .newOutputStream(filesSetup.getTestPath(), (OpenOption[]) null)) { in test_newOutputStream_NPE()
291 Set<OpenOption> set = new HashSet<OpenOption>(); in test_newByteChannel()
326 Set<OpenOption> set = new HashSet<OpenOption>(); in test_newByteChannel_openOption_WRITE()
362 Set<OpenOption> set = new HashSet<OpenOption>(); in test_newByteChannel_openOption_WRITE_READ()
388 Set<OpenOption> set = new HashSet<OpenOption>(); in test_newByteChannel_NPE()
DDefaultSecureDirectoryStreamTest.java36 import java.nio.file.OpenOption;
203 Set<OpenOption> set = new HashSet<OpenOption>(); in test_newByteChannel()
250 Set<OpenOption> set = new HashSet<OpenOption>(); in test_newByteChannel_NPE()
DDefaultFileSystemProvider2Test.java37 import java.nio.file.OpenOption;
403 Set<OpenOption> openOptions = new HashSet<>(); in test_newFileChannel()
504 public void test_newFileChannel_NoSuchFileException(Set<? extends OpenOption> openOptions) in test_newFileChannel_NoSuchFileException()
528 Set<OpenOption> openOptions = new HashSet<>(); in test_newFileChannel_withFileAttributes()
DFiles2Test.java49 import java.nio.file.OpenOption;
1162 Files.newBufferedWriter(filesSetup.getTestPath(), (OpenOption[]) null); in test_newBufferedWriter$Path$Charset_NPE()
1254 (OpenOption[]) null)) { in test_newByteChannel_NPE()
1554 public void test_write$Path$byte$OpenOption() throws IOException { in test_write$Path$byte$OpenOption()
1593 Files.write(filesSetup.getTestPath(), TEST_FILE_DATA_2.getBytes(), (OpenOption[]) null); in test_write$Path$byte$OpenOption_NPE()
1599 public void test_write$Path$Iterable$Charset$OpenOption() throws IOException { in test_write$Path$Iterable$Charset$OpenOption()
1622 Files.write(filesSetup.getDataFilePath(), new ArrayList<>(), (OpenOption[]) null); in test_write$Path$Iterable$Charset$OpenOption_NPE()
1628 public void test_write$Path$Iterable$OpenOption() throws IOException { in test_write$Path$Iterable$OpenOption()
1807 Set<OpenOption> stubSet = new HashSet<>(); in test_newByteChannel$Path$Set_OpenOption$FileAttributes()
DFilesTest.java39 import java.nio.file.OpenOption;
111 HashSet<OpenOption> openOptions = new HashSet<>(); in test_newByteChannel()
/libcore/ojluni/src/main/java/java/nio/file/
DOpenOption.java44 public interface OpenOption { interface
DLinkOption.java34 public enum LinkOption implements OpenOption, CopyOption {
DStandardOpenOption.java34 public enum StandardOpenOption implements OpenOption {
DFiles.java149 public static InputStream newInputStream(Path path, OpenOption... options)
213 public static OutputStream newOutputStream(Path path, OpenOption... options)
357 Set<? extends OpenOption> options,
402 public static SeekableByteChannel newByteChannel(Path path, OpenOption... options)
405 Set<OpenOption> set = new HashSet<OpenOption>(options.length);
2856 OpenOption... options)
2895 …public static BufferedWriter newBufferedWriter(Path path, OpenOption... options) throws IOExceptio…
3286 public static Path write(Path path, byte[] bytes, OpenOption... options)
3345 Charset cs, OpenOption... options)
3394 OpenOption... options)
DSecureDirectoryStream.java149 Set<? extends OpenOption> options, in newByteChannel()
/libcore/luni/src/test/filesystems/src/mypackage/
DMockFileSystemProvider.java28 import java.nio.file.OpenOption;
65 public SeekableByteChannel newByteChannel(Path path, Set<? extends OpenOption> options, in newByteChannel()
/libcore/luni/src/test/java/libcore/java/nio/channels/
DAsynchronousFileChannelTest.java35 import java.nio.file.OpenOption;
655 Set<OpenOption> openOptions = new HashSet<>(); in testCustomExecutor()
/libcore/
Dopenjdk_java_files.bp475 "ojluni/src/main/java/java/nio/file/OpenOption.java",