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 * <p>Whether or not a file is available or may be created depends upon the
36 * underlying platform. Some platforms, in particular, allow a file to be
37 * opened for writing by only one <tt>FileWriter</tt> (or other file-writing
39 * will fail if the file involved is already open.
55 * Constructs a FileWriter object given a file name.
58 * @throws IOException if the named file exists but is a directory rather
59 * than a regular file, does not exist but cannot be
67 * Constructs a FileWriter object given a file name with a boolean
72 * to the end of the file rather than the beginning.
73 * @throws IOException if the named file exists but is a directory rather
74 * than a regular file, does not exist but cannot be
84 * @param file a File object to write to.
85 * @throws IOException if the file exists but is a directory rather than
86 * a regular file, does not exist but cannot be created,
89 public FileWriter(File file) throws IOException {
90 super(new FileOutputStream(file));
96 * of the file rather than the beginning.
98 * @param file a File object to write to
100 * to the end of the file rather than the beginning
101 * @throws IOException if the file exists but is a directory rather than
102 * a regular file, does not exist but cannot be created,
106 public FileWriter(File file, boolean append) throws IOException {
107 super(new FileOutputStream(file, append));
111 * Constructs a FileWriter object associated with a file descriptor.