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
34 * A file output stream is an output stream for writing data to a
36 * a file is available or may be created depends upon the underlying
37 * platform. Some platforms, in particular, allow a file to be opened
39 * file-writing object) at a time. In such situations the constructors in
40 * this class will fail if the file involved is already open.
50 * @see java.nio.file.Files#newOutputStream
57 * The system dependent file descriptor.
62 * The path of the referenced file (null if the stream is created with a file descriptor)
67 * True if the file is opened for append.
89 * Creates a file output stream to write to the file with the
91 * created to represent this file connection.
96 * If the file exists but is a directory rather than a regular file, does
101 * @exception FileNotFoundException if the file exists but is a directory
102 * rather than a regular file, does not exist but cannot
106 * to the file.
114 * Creates a file output stream to write to the file with the specified
116 * bytes will be written to the end of the file rather than the beginning.
118 * file connection.
123 * If the file exists but is a directory rather than a regular file, does
127 * @param name the system-dependent file name
129 * to the end of the file rather than the beginning
130 * @exception FileNotFoundException if the file exists but is a directory
131 * rather than a regular file, does not exist but cannot
135 * to the file.
146 * Creates a file output stream to write to the file represented by
149 * file connection.
152 * method is called with the path represented by the <code>file</code>
155 * If the file exists but is a directory rather than a regular file, does
159 * @param file the file to be opened for writing.
160 * @exception FileNotFoundException if the file exists but is a directory
161 * rather than a regular file, does not exist but cannot
165 * to the file.
170 public FileOutputStream(File file) throws FileNotFoundException {
171 this(file, false);
175 * Creates a file output stream to write to the file represented by
177 * <code>true</code>, then bytes will be written to the end of the file
179 * created to represent this file connection.
182 * method is called with the path represented by the <code>file</code>
185 * If the file exists but is a directory rather than a regular file, does
189 * @param file the file to be opened for writing.
191 * to the end of the file rather than the beginning
192 * @exception FileNotFoundException if the file exists but is a directory
193 * rather than a regular file, does not exist but cannot
197 * to the file.
203 public FileOutputStream(File file, boolean append)
206 String name = (file != null ? file.getPath() : null);
214 if (file.isInvalid()) {
215 throw new FileNotFoundException("Invalid file path");
225 * Creates a file output stream to write to the specified file
227 * file in the file system.
230 * method is called with the file descriptor <code>fdObj</code>
241 * @param fdObj the file descriptor to be opened for writing
244 * write access to the file descriptor
268 * Opens a file, with the specified name, for overwriting or appending.
269 * @param name name of file to be opened
270 * @param append whether the file is to be opened in append mode
276 * Writes the specified byte to this file output stream.
280 * advances the position to the end of file
285 * Writes the specified byte to this file output stream. Implements
308 * end of file
316 * to this file output stream.
334 * starting at offset <code>off</code> to this file output stream.
353 * Closes this file output stream and releases any system resources
354 * associated with this stream. This file output stream may no longer
398 * Returns the file descriptor associated with this stream.
401 * the connection to the file in the file system being used
414 * object associated with this file output stream. </p>
418 * number of bytes written to the file so far unless this stream is in
419 * append mode, in which case it will be equal to the size of the file.
422 * writing, will change this stream's file position.
424 * @return the file channel associated with this file output stream
446 * Cleans up the connection to the file, and ensures that the
447 * <code>close</code> method of this file output stream is