Lines Matching defs:file

9  * particular file as subject to the "Classpath" exception as provided
10 * by Oracle in the LICENSE file that accompanied this code.
15 * version 2 for more details (a copy is included in the LICENSE file that
40 * from a file in a file system. What files
51 * @see java.nio.file.Files#newInputStream
57 /* File Descriptor - handle to the open file */
60 /* The path of the referenced file (null if the stream is created with a file descriptor) */
73 * opening a connection to an actual file,
74 * the file named by the path name <code>name</code>
75 * in the file system. A new <code>FileDescriptor</code>
76 * object is created to represent this file
84 * If the named file does not exist, is a directory rather than a regular
85 * file, or for some other reason cannot be opened for reading then a
88 * @param name the system-dependent file name.
89 * @exception FileNotFoundException if the file does not exist,
90 * is a directory rather than a regular file,
95 * to the file.
104 * opening a connection to an actual file,
105 * the file named by the <code>File</code>
106 * object <code>file</code> in the file system.
108 * is created to represent this file connection.
112 * with the path represented by the <code>file</code>
115 * If the named file does not exist, is a directory rather than a regular
116 * file, or for some other reason cannot be opened for reading then a
119 * @param file the file to be opened for reading.
120 * @exception FileNotFoundException if the file does not exist,
121 * is a directory rather than a regular file,
125 * <code>checkRead</code> method denies read access to the file.
129 public FileInputStream(File file) throws FileNotFoundException {
130 String name = (file != null ? file.getPath() : null);
138 if (file.isInvalid()) {
139 throw new FileNotFoundException("Invalid file path");
151 * Creates a <code>FileInputStream</code> by using the file descriptor
153 * actual file in the file system.
156 * called with the file descriptor <code>fdObj</code> as its argument to
157 * see if it's ok to read the file descriptor. If read access is denied
158 * to the file descriptor a <code>SecurityException</code> is thrown.
168 * @param fdObj the file descriptor to be opened for reading.
185 * Opens the specified file for reading.
186 * @param name the name of the file
195 * file is reached.
219 * the file has been reached.
237 * the file has been reached.
271 * file. This produces no exception and the number of bytes skipped
273 * backing file. Attempting to read from the stream after skipping past
274 * the end will result in -1 indicating the end of the file.
315 * @exception IOException if this file input stream has been closed by calling
329 * 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
406 * Ensures that the <code>close</code> method of this file input stream is