Class UnicodeFileWriter

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

    public class UnicodeFileWriter
    extends UnicodeOutputStreamWriter
    A UnicodeOutputStreamWriter which directs its output to a file. All constructors pass-thru to a UnicodeOutputStreamWriter constructor an OutputStream that is built using a FileOutputStream constructor.

    Appending to an existing file is safe: if the file exists, and is non-empty, then no signature BOM is recorded (regardless of the specified or deduced signature/charset) because we assume that a BOM is already present. However, this class does not attempt to check that, in this case, the existing signature BOM and associated charset match the one supplied in the constructor.

    Since:
    0.6.0
    Version:
    $Id: UnicodeFileWriter.java 16154 2012-07-14 16:34:05Z colin $
    Author:
    tlerios@marketcetera.com