IT. Expert System.

Android Reference

FileWriter


java.io

Class FileWriter

  • All Implemented Interfaces:
    Closeable, Flushable, Appendable, AutoCloseable


    public class FileWriter
    extends OutputStreamWriter
    A specialized Writer that writes to a file in the file system. All write requests made by calling methods in this class are directly forwarded to the equivalent function of the underlying operating system. Since this may induce some performance penalty, in particular if many small write requests are made, a FileWriter is often wrapped by a BufferedWriter.
    See Also:
    BufferedWriter, FileReader
    • Constructor Detail

      • FileWriter

        public FileWriter(File file)
                   throws IOException
        Creates a FileWriter using the File file.
        Parameters:
        file - the non-null File to write bytes to.
        Throws:
        IOException - if file cannot be opened for writing.
      • FileWriter

        public FileWriter(File file,
                  boolean append)
                   throws IOException
        Creates a FileWriter using the File file. The parameter append determines whether or not the file is opened and appended to or just opened and overwritten.
        Parameters:
        file - the non-null File to write bytes to.
        append - indicates whether or not to append to an existing file.
        Throws:
        IOException - if the file cannot be opened for writing.
      • FileWriter

        public FileWriter(FileDescriptor fd)
        Creates a FileWriter using the existing FileDescriptor fd.
        Parameters:
        fd - the non-null FileDescriptor to write bytes to.
      • FileWriter

        public FileWriter(String filename)
                   throws IOException
        Creates a FileWriter using the platform dependent filename.
        Parameters:
        filename - the non-null name of the file to write bytes to.
        Throws:
        IOException - if the file cannot be opened for writing.
      • FileWriter

        public FileWriter(String filename,
                  boolean append)
                   throws IOException
        Creates a FileWriter using the platform dependent filename. The parameter append determines whether or not the file is opened and appended to or just opened and overwritten.
        Parameters:
        filename - the non-null name of the file to write bytes to.
        append - indicates whether or not to append to an existing file.
        Throws:
        IOException - if the file cannot be opened for writing.


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 8374 / 158711885. Delta: 0.03262 с