/libcore/ojluni/src/main/java/java/nio/channels/ |
H A D | Pipe.java | 154 public static Pipe open() throws IOException { method in class:Pipe
|
H A D | Selector.java | 37 * <p> A selector may be created by invoking the {@link #open open} method of 42 * method of a custom selector provider. A selector remains open until it is 160 * that the key is valid or that its channel is open. Application code should 226 public static Selector open() throws IOException { method in class:Selector 231 * Tells whether or not this selector is open. 233 * @return <tt>true</tt> if, and only if, this selector is open
|
H A D | ServerSocketChannel.java | 38 * <p> A server-socket channel is created by invoking the {@link #open() open} 41 * open but not yet bound. An attempt to invoke the {@link #accept() accept} 107 public static ServerSocketChannel open() throws IOException { method in class:ServerSocketChannel
|
H A D | AsynchronousServerSocketChannel.java | 38 * {@link #open open} method of this class. 39 * A newly-created asynchronous server-socket channel is open but not yet bound. 75 * AsynchronousServerSocketChannel.open().bind(new InetSocketAddress(5000)); 140 public static AsynchronousServerSocketChannel open(AsynchronousChannelGroup group) method in class:AsynchronousServerSocketChannel 155 * open((AsynchronousChannelGroup)null); 163 public static AsynchronousServerSocketChannel open() method in class:AsynchronousServerSocketChannel 166 return open(null);
|
H A D | AsynchronousFileChannel.java | 43 * one of the {@link #open open} methods defined by this class. The file contains 200 * Shutting down the executor service while the channel is open results in 211 * The path of the file to open or create 228 * open option is specified, or the array contains an attribute that 241 public static AsynchronousFileChannel open(Path file, method in class:AsynchronousFileChannel 261 * ch.{@link #open(Path,Set,ExecutorService,FileAttribute[]) 262 * open}(file, opts, null, new FileAttribute<?>[0]); 273 * The path of the file to open or create 283 * support creating file channels, or an unsupported open optio 296 public static AsynchronousFileChannel open(Path file, OpenOption... options) method in class:AsynchronousFileChannel [all...] |
H A D | AsynchronousSocketChannel.java | 41 * #open open} methods defined by this class. A newly-created channel is open but 113 * open. All methods that accept timeout parameters treat values less than or 164 public static AsynchronousSocketChannel open(AsynchronousChannelGroup group) method in class:AsynchronousSocketChannel 179 * open((AsynchronousChannelGroup)null); 187 public static AsynchronousSocketChannel open() method in class:AsynchronousSocketChannel 190 return open(null);
|
H A D | Channels.java | 365 private boolean open = true; field in class:Channels.ReadableByteChannelImpl 405 open = false; 434 private boolean open = true; field in class:Channels.WritableByteChannelImpl 465 open = false;
|
H A D | DatagramChannel.java | 40 * <p> A datagram channel is created by invoking one of the {@link #open open} methods 42 * pre-existing datagram socket. A newly-created datagram channel is open but not 139 * The {@link #open(ProtocolFamily) open} allows the protocol family to be 140 * selected when opening a datagram channel, and should be used to open 148 public static DatagramChannel open() throws IOException { method in class:DatagramChannel 181 public static DatagramChannel open(ProtocolFamily family) throws IOException { method in class:DatagramChannel 243 * is {@link #isOpen open} and connected
|
H A D | FileChannel.java | 105 * <p> A file channel is created by invoking one of the {@link #open open} 121 * <a name="open-mode"></a> <p> At various points this class specifies that an 122 * instance that is "open for reading," "open for writing," or "open for 125 * java.io.FileInputStream} instance will be open for reading. A channel 127 * method of a {@link java.io.FileOutputStream} instance will be open for 130 * java.io.RandomAccessFile} instance will be open for reading if the instance 131 * was created with mode <tt>"r"</tt> and will be open fo 281 public static FileChannel open(Path path, method in class:FileChannel 330 public static FileChannel open(Path path, OpenOption... options) method in class:FileChannel [all...] |
H A D | SocketChannel.java | 39 * <p> A socket channel is created by invoking one of the {@link #open open} 41 * pre-existing socket. A newly-created socket channel is open but not yet 144 public static SocketChannel open() throws IOException { method in class:SocketChannel 151 * <p> This convenience method works as if by invoking the {@link #open()} 184 public static SocketChannel open(SocketAddress remote) method in class:SocketChannel 187 SocketChannel sc = open(); 308 * is {@link #isOpen open} and connected
|
/libcore/ojluni/src/main/java/java/nio/channels/spi/ |
H A D | AbstractInterruptibleChannel.java | 93 private volatile boolean open = true; field in class:AbstractInterruptibleChannel 113 if (!open) 115 open = false; 139 return open; 161 if (!open) 163 open = false; 205 if (!completed && !open)
|
/libcore/dalvik/src/test/java/dalvik/system/ |
H A D | CloseGuardTest.java | 60 owner.open(); 68 owner.open(); 78 owner.open(); 89 owner.open(); 108 owner.open(); 116 owner.open(); 126 owner.open(); 155 public void open() { method in class:CloseGuardTest.ResourceOwner 156 closeGuard.open("close");
|
/libcore/dalvik/test-rules/src/main/java/dalvik/system/ |
H A D | CloseGuardSupport.java | 51 * mechanism to open a resource and hold it open past the end of the test. In that case if there is 160 public void open(Throwable allocationSite) { method in class:CloseGuardSupport.TestCloseGuardTracker
|
/libcore/ojluni/src/main/java/java/io/ |
H A D | FileOutputStream.java | 44 * this class will fail if the file involved is already open. 223 open(name, append); 224 guard.open("close"); 285 private void open(String name, boolean append) method in class:FileOutputStream 404 channel = FileChannelImpl.open(fd, path, false, true, append, this);
|
H A D | FileInputStream.java | 57 /* File Descriptor - handle to the open file */ 150 open(name); 151 guard.open("close"); 199 private void open(String name) throws FileNotFoundException { method in class:FileInputStream 401 channel = FileChannelImpl.open(fd, path, true, false, this);
|
/libcore/dalvik/src/main/java/dalvik/system/ |
H A D | CloseGuard.java | 33 * guard.open("cleanup"); 70 * guard.open("cleanup"); 92 * When used in a constructor calls to {@code open} should occur at 96 * in a method, the call to {@code open} should occur just after 132 * #open(String)} can be used to set up the instance to warn on 205 * If CloseGuard is enabled, {@code open} initializes the instance 213 public void open(String closer) { method in class:CloseGuard 224 currentTracker.open(allocationSite); 263 void open(Throwable allocationSite); method in interface:CloseGuard.Tracker 273 public void open(Throwabl method in class:CloseGuard.DefaultTracker [all...] |
/libcore/json/src/main/java/org/json/ |
H A D | JSONStringer.java | 139 return open(Scope.EMPTY_ARRAY, "["); 158 return open(Scope.EMPTY_OBJECT, "{"); 174 JSONStringer open(Scope empty, String openBracket) throws JSONException { method in class:JSONStringer
|
/libcore/ojluni/src/main/java/sun/nio/ch/ |
H A D | AsynchronousServerSocketChannelImpl.java | 61 private volatile boolean open = true; field in class:AsynchronousServerSocketChannelImpl 76 return open; 105 if (!open) 107 open = false;
|
H A D | SimpleAsynchronousFileChannelImpl.java | 65 public static AsynchronousFileChannel open(FileDescriptor fdo, method in class:SimpleAsynchronousFileChannelImpl
|
H A D | AsynchronousSocketChannelImpl.java | 81 private volatile boolean open = true; field in class:AsynchronousSocketChannelImpl 109 return open; 138 if (!open) 140 open = false;
|
/libcore/ojluni/src/main/java/sun/nio/fs/ |
H A D | UnixChannelFactory.java | 54 * Represents the flags from a user-supplied set of open options. 101 * Constructs a file channel from an existing (open) file descriptor 106 return FileChannelImpl.open(fdObj, path, reading, writing, null); 136 FileDescriptor fdObj = open(dfd, path, pathForPermissionCheck, flags, mode); 137 return FileChannelImpl.open(fdObj, path.toString(), flags.read, flags.write, flags.append, null); 172 FileDescriptor fdObj = open(-1, path, null, flags, mode); 173 return SimpleAsynchronousFileChannelImpl.open(fdObj, flags.read, flags.write, pool); 178 * encapsulating the handle to the open file. 180 protected static FileDescriptor open(int dfd, method in class:UnixChannelFactory 239 // permission check before we open th [all...] |
H A D | UnixSecureDirectoryStream.java | 62 guard.open("close"); 118 // open directory and create new secure directory stream 236 * Rename/move file in this directory to another (open) directory 335 int open() throws IOException { method in class:UnixSecureDirectoryStream.BasicFileAttributeViewImpl 407 int fd = (file == null) ? dfd : open(); 504 int fd = (file == null) ? dfd : open(); 527 int fd = (file == null) ? dfd : open();
|
/libcore/luni/src/main/java/libcore/io/ |
H A D | IoBridge.java | 493 public static FileDescriptor open(String path, int flags) throws FileNotFoundException { method in class:IoBridge 498 fd = Libcore.os.open(path, flags, mode); 499 // Posix open(2) fails with EISDIR only if you ask for write permission. 502 throw new ErrnoException("open", EISDIR);
|
/libcore/ojluni/src/main/java/java/util/logging/ |
H A D | FileHandler.java | 134 * tries to open the filename and finds the file is currently in use by 206 private void open(File fname, boolean append) throws IOException { method in class:FileHandler 460 channel = FileChannel.open(lockFilePath, 472 channel = FileChannel.open(lockFilePath, 537 open(files[0], true); 605 // // we disallow attempts to open files relative to %h. 664 open(files[0], false);
|
/libcore/ojluni/src/main/java/java/util/zip/ |
H A D | ZipFile.java | 81 * Mode flag to open a zip file for reading. 86 * Mode flag to open a zip file and mark it for deletion. The file will be 235 jzfile = open(name, mode, file.lastModified(), usemmap); 250 guard.open("close"); 838 private static native long open(String name, int mode, long lastModified, method in class:ZipFile
|