Home
last modified time | relevance | path

Searched refs:options (Results 1 – 25 of 119) sorted by relevance

12345

/libcore/ojluni/src/main/java/java/nio/file/
DFiles.java149 public static InputStream newInputStream(Path path, OpenOption... options)
152 return provider(path).newInputStream(path, options);
213 public static OutputStream newOutputStream(Path path, OpenOption... options)
216 return provider(path).newOutputStream(path, options);
357 Set<? extends OpenOption> options,
361 return provider(path).newByteChannel(path, options, attrs);
402 public static SeekableByteChannel newByteChannel(Path path, OpenOption... options)
405 Set<OpenOption> set = new HashSet<OpenOption>(options.length);
406 Collections.addAll(set, options);
630 EnumSet<StandardOpenOption> options =
[all …]
DCopyMoveHelper.java50 static CopyOptions parse(CopyOption... options) { in parse() argument
52 for (CopyOption option: options) { in parse()
78 private static CopyOption[] convertMoveToCopyOptions(CopyOption... options) in convertMoveToCopyOptions() argument
81 int len = options.length; in convertMoveToCopyOptions()
84 CopyOption option = options[i]; in convertMoveToCopyOptions()
101 CopyOption... options) in copyToForeignTarget() argument
104 CopyOptions opts = CopyOptions.parse(options); in copyToForeignTarget()
155 CopyOption... options) throws IOException in moveToForeignTarget() argument
157 copyToForeignTarget(source, target, convertMoveToCopyOptions(options)); in moveToForeignTarget()
DSecureDirectoryStream.java97 SecureDirectoryStream<T> newDirectoryStream(T path, LinkOption... options) in newDirectoryStream() argument
149 Set<? extends OpenOption> options, in newByteChannel() argument
311 LinkOption... options); in getFileAttributeView() argument
/libcore/ojluni/src/main/java/sun/net/ext/
DExtendedSocketOptions.java47 private final Set<SocketOption<?>> options; field in ExtendedSocketOptions
51 return options().contains(option); in isOptionSupported()
55 public final Set<SocketOption<?>> options() { return options; } in options() method in ExtendedSocketOptions
57 public static final Set<SocketOption<?>> options(short type) { in options() method in ExtendedSocketOptions
65 extOptions = options.stream() in options0()
70 extOptions = options.stream() in options0()
89 protected ExtendedSocketOptions(Set<SocketOption<?>> options) { in ExtendedSocketOptions() argument
90 this.options = options; in ExtendedSocketOptions()
/libcore/ojluni/src/main/java/java/nio/file/spi/
DFileSystemProvider.java373 public InputStream newInputStream(Path path, OpenOption... options) in newInputStream() argument
376 if (options.length > 0) { in newInputStream()
377 for (OpenOption opt: options) { in newInputStream()
384 return Channels.newInputStream(Files.newByteChannel(path, options)); in newInputStream()
418 public OutputStream newOutputStream(Path path, OpenOption... options) in newOutputStream() argument
421 int len = options.length; in newOutputStream()
427 for (OpenOption opt: options) { in newOutputStream()
472 Set<? extends OpenOption> options, in newFileChannel() argument
520 Set<? extends OpenOption> options, in newAsynchronousFileChannel() argument
566 Set<? extends OpenOption> options, FileAttribute<?>... attrs) throws IOException; in newByteChannel() argument
[all …]
/libcore/ojluni/src/main/java/sun/nio/fs/
DLinuxFileSystemProvider.java60 LinkOption... options) in getFileAttributeView() argument
74 return super.getFileAttributeView(obj, type, options); in getFileAttributeView()
80 LinkOption... options) in getFileAttributeView() argument
94 return super.getFileAttributeView(obj, name, options); in getFileAttributeView()
101 LinkOption... options) in readAttributes() argument
115 return super.readAttributes(file, type, options); in readAttributes()
DAbstractFileSystemProvider.java64 LinkOption... options); in getFileAttributeView() argument
70 LinkOption... options) in setAttribute() argument
76 DynamicFileAttributeView view = getFileAttributeView(file, s[0], options); in setAttribute()
83 …public final Map<String,Object> readAttributes(Path file, String attributes, LinkOption... options) in readAttributes() argument
89 DynamicFileAttributeView view = getFileAttributeView(file, s[0], options); in readAttributes()
DUnixFileSystemProvider.java113 LinkOption... options) in getFileAttributeView() argument
116 boolean followLinks = Util.followLinks(options); in getFileAttributeView()
132 LinkOption... options) in readAttributes() argument
144 return (A) getFileAttributeView(file, view, options).readAttributes(); in readAttributes()
150 LinkOption... options) in getFileAttributeView() argument
153 boolean followLinks = Util.followLinks(options); in getFileAttributeView()
167 Set<? extends OpenOption> options, in newFileChannel() argument
175 return UnixChannelFactory.newFileChannel(file, options, mode); in newFileChannel()
184 Set<? extends OpenOption> options, in newAsynchronousFileChannel() argument
194 .newAsynchronousFileChannel(file, options, mode, pool); in newAsynchronousFileChannel()
[all …]
DUnixChannelFactory.java68 static Flags toFlags(Set<? extends OpenOption> options) { in toFlags() argument
70 for (OpenOption option: options) { in toFlags()
115 Set<? extends OpenOption> options, in newFileChannel() argument
119 Flags flags = Flags.toFlags(options); in newFileChannel()
144 Set<? extends OpenOption> options, in newFileChannel() argument
148 return newFileChannel(-1, path, null, options, mode); in newFileChannel()
155 Set<? extends OpenOption> options, in newAsynchronousFileChannel() argument
160 Flags flags = Flags.toFlags(options); in newAsynchronousFileChannel()
/libcore/ojluni/src/main/java/java/security/cert/
DPKIXRevocationChecker.java105 private Set<Option> options = Collections.emptySet(); field in PKIXRevocationChecker
233 public void setOptions(Set<Option> options) { in setOptions() argument
234 this.options = (options == null) in setOptions()
236 : new HashSet<>(options); in setOptions()
246 return Collections.unmodifiableSet(options); in getOptions()
277 copy.options = new HashSet<>(options); in clone()
/libcore/luni/src/test/java/libcore/java/nio/file/spi/
DFileSystemProviderTest.java71 Set<? extends OpenOption> options, FileAttribute<?>... attrs) throws IOException { in newByteChannel() argument
92 public void copy(Path source, Path target, CopyOption... options) throws IOException { in copy() argument
97 public void move(Path source, Path target, CopyOption... options) throws IOException { in move() argument
123 Path path, Class<V> type, LinkOption... options) { in getFileAttributeView() argument
129 Path path, Class<A> type, LinkOption... options) throws IOException { in readAttributes() argument
135 Path path, String attributes, LinkOption... options) throws IOException { in readAttributes() argument
141 Object value, LinkOption... options) throws IOException { in setAttribute() argument
165 Set<OpenOption> options = new TreeSet<OpenOption>(); in testNewAsynchronousFileChannel() local
168 provider.newAsynchronousFileChannel(path, options, null); in testNewAsynchronousFileChannel()
/libcore/luni/src/test/filesystems/src/mypackage/
DMockFileSystemProvider.java65 public SeekableByteChannel newByteChannel(Path path, Set<? extends OpenOption> options, in newByteChannel() argument
87 public void copy(Path source, Path target, CopyOption... options) throws IOException { in copy() argument
92 public void move(Path source, Path target, CopyOption... options) throws IOException { in move() argument
118 LinkOption... options) { in getFileAttributeView() argument
124 LinkOption... options) throws IOException { in readAttributes() argument
130 LinkOption... options) throws IOException { in readAttributes() argument
135 public void setAttribute(Path path, String attribute, Object value, LinkOption... options) in setAttribute() argument
/libcore/ojluni/src/test/java/net/SocketOptions/
DOptionsTest.java98 Set<SocketOption<?>> options = c.supportedOptions(); in doSocketTests() local
99 boolean reuseport = options.contains(StandardSocketOptions.SO_REUSEPORT); in doSocketTests()
120 Set<SocketOption<?>> options = c.supportedOptions(); in doDgSocketTests() local
121 boolean reuseport = options.contains(StandardSocketOptions.SO_REUSEPORT); in doDgSocketTests()
160 Set<SocketOption<?>> options = c.supportedOptions(); in doServerSocketTests() local
161 boolean reuseport = options.contains(StandardSocketOptions.SO_REUSEPORT); in doServerSocketTests()
187 Set<SocketOption<?>> options = socket.supportedOptions(); in legacyGetOption() local
188 boolean reuseport = options.contains(StandardSocketOptions.SO_REUSEPORT); in legacyGetOption()
211 Set<SocketOption<?>> options = socket.supportedOptions(); in legacyGetOption() local
212 boolean reuseport = options.contains(StandardSocketOptions.SO_REUSEPORT); in legacyGetOption()
[all …]
/libcore/ojluni/src/main/java/java/nio/channels/
DAsynchronousFileChannel.java242 Set<? extends OpenOption> options, in open() argument
248 return provider.newAsynchronousFileChannel(file, options, executor, attrs); in open()
296 public static AsynchronousFileChannel open(Path file, OpenOption... options) in open() argument
299 Set<OpenOption> set = new HashSet<OpenOption>(options.length); in open()
300 Collections.addAll(set, options); in open()
DFileChannel.java282 Set<? extends OpenOption> options, in open() argument
287 return provider.newFileChannel(path, options, attrs); in open()
330 public static FileChannel open(Path path, OpenOption... options) in open() argument
333 Set<OpenOption> set = new HashSet<OpenOption>(options.length); in open()
334 Collections.addAll(set, options); in open()
/libcore/ojluni/src/main/java/jdk/net/
DSockets.java63 options = new HashMap<>(); field in Sockets
339 Set<SocketOption<?>> set = options.get(socketType); in supportedOptions()
347 Set<SocketOption<?>> options = supportedOptions(type); in isSupported() local
348 return options.contains(option); in isSupported()
368 options.put(Socket.class, set); in initOptionSets()
377 options.put(ServerSocket.class, set); in initOptionSets()
390 options.put(DatagramSocket.class, set); in initOptionSets()
406 options.put(MulticastSocket.class, set); in initOptionSets()
DExtendedSocketOptions.java175 private static final Set<SocketOption<?>> extendedOptions = options();
177 static Set<SocketOption<?>> options() { in options() method in ExtendedSocketOptions
178 Set<SocketOption<?>> options = new HashSet<>(); in options() local
180 options.add(SO_FLOW_SLA); in options()
183 options.add(TCP_QUICKACK); in options()
186 options.addAll(Set.of(TCP_KEEPCOUNT, TCP_KEEPIDLE, TCP_KEEPINTERVAL)); in options()
188 return Collections.unmodifiableSet(options); in options()
/libcore/ojluni/src/main/java/java/util/concurrent/
DTEST_MAPPING5 "options": [
13 "options": [
/libcore/ojluni/src/main/java/java/awt/font/
DTEST_MAPPING5 "options": [
13 "options": [
/libcore/ojluni/src/main/java/java/nio/file/attribute/
DTEST_MAPPING5 "options": [
13 "options": [
/libcore/ojluni/src/main/java/java/time/format/
DTEST_MAPPING5 "options": [
13 "options": [
/libcore/libart/src/main/java/java/lang/invoke/
DTEST_MAPPING5 "options": [
13 "options": [
/libcore/ojluni/src/main/java/java/time/
DTEST_MAPPING5 "options": [
15 "options": [
/libcore/ojluni/src/main/java/sun/nio/ch/
DSocketOptionRegistry.java57 static final Map<RegistryKey,OptionKey> options = options(); field in SocketOptionRegistry.LazyInitialization
58 private static Map<RegistryKey,OptionKey> options() { in options() method in SocketOptionRegistry.LazyInitialization
82 return LazyInitialization.options.get(key); in findOption()
/libcore/ojluni/src/main/java/java/time/zone/
DTEST_MAPPING5 "options": [
13 "options": [

12345