Package com.sun.xfile

Class XFileWriter

  • All Implemented Interfaces:
    java.io.Closeable, java.io.Flushable, java.lang.Appendable, java.lang.AutoCloseable

    public class XFileWriter
    extends java.io.OutputStreamWriter
    Convenience class for writing character files. The constructors of this class assume that the default character encoding and the default byte-buffer size are acceptable. To specify these values yourself, construct an OutputStreamWriter on a FileOutputStream.
    See Also:
    OutputStreamWriter, XFileOutputStream
    • Field Summary

      • Fields inherited from class java.io.Writer

        lock
    • Constructor Summary

      Constructors 
      Constructor Description
      XFileWriter​(XFile file)  
      XFileWriter​(java.lang.String fileName)  
      XFileWriter​(java.lang.String fileName, boolean append)  
    • Method Summary

      • Methods inherited from class java.io.OutputStreamWriter

        append, append, close, flush, getEncoding, write, write, write
      • Methods inherited from class java.io.Writer

        append, nullWriter, write, write
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • XFileWriter

        public XFileWriter​(java.lang.String fileName)
                    throws java.io.IOException
        Throws:
        java.io.IOException
      • XFileWriter

        public XFileWriter​(java.lang.String fileName,
                           boolean append)
                    throws java.io.IOException
        Throws:
        java.io.IOException
      • XFileWriter

        public XFileWriter​(XFile file)
                    throws java.io.IOException
        Throws:
        java.io.IOException