Lines Matching defs:file

8  * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
14 * version 2 for more details (a copy is included in the LICENSE file that
35 * from a file in a file system. What files
46 * @see java.nio.file.Files#newInputStream
52 /* File Descriptor - handle to the open file */
55 /* The path of the referenced file (null if the stream is created with a file descriptor) */
75 * opening a connection to an actual file,
76 * the file named by the path name <code>name</code>
77 * in the file system. A new <code>FileDescriptor</code>
78 * object is created to represent this file
86 * If the named file does not exist, is a directory rather than a regular
87 * file, or for some other reason cannot be opened for reading then a
90 * @param name the system-dependent file name.
91 * @exception FileNotFoundException if the file does not exist,
92 * is a directory rather than a regular file,
97 * to the file.
106 * opening a connection to an actual file,
107 * the file named by the <code>File</code>
108 * object <code>file</code> in the file system.
110 * is created to represent this file connection.
114 * with the path represented by the <code>file</code>
117 * If the named file does not exist, is a directory rather than a regular
118 * file, or for some other reason cannot be opened for reading then a
121 * @param file the file to be opened for reading.
122 * @exception FileNotFoundException if the file does not exist,
123 * is a directory rather than a regular file,
127 * <code>checkRead</code> method denies read access to the file.
131 public FileInputStream(File file) throws FileNotFoundException {
132 String name = (file != null ? file.getPath() : null);
140 if (file.isInvalid()) {
141 throw new FileNotFoundException("Invalid file path");
150 * Creates a <code>FileInputStream</code> by using the file descriptor
152 * actual file in the file system.
155 * called with the file descriptor <code>fdObj</code> as its argument to
156 * see if it's ok to read the file descriptor. If read access is denied
157 * to the file descriptor a <code>SecurityException</code> is thrown.
167 * @param fdObj the file descriptor to be opened for reading.
170 * file descriptor.
193 * Opens the specified file for reading.
194 * @param name the name of the file
203 * file is reached.
236 * the file has been reached.
261 * the file has been reached.
291 * file. This produces no exception and the number of bytes skipped
293 * backing file. Attempting to read from the stream after skipping past
294 * the end will result in -1 indicating the end of the file.
316 * @exception IOException if this file input stream has been closed by calling
322 * Closes this file input stream and releases any system resources
367 * the actual file in the file system being
370 * @return the file descriptor object associated with this stream.
381 * object associated with this file input stream.
385 * number of bytes read from the file so far. Reading bytes from this
388 * file position.
390 * @return the file channel associated with this file input stream
420 * Ensures that the <code>close</code> method of this file input stream is