Class EncodingFileWriter

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

    public class EncodingFileWriter
    extends java.io.OutputStreamWriter
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) java.lang.String newline  
      • Fields inherited from class java.io.Writer

        lock
    • Constructor Summary

      Constructors 
      Constructor Description
      EncodingFileWriter​(java.io.File file, java.lang.String newline)  
      EncodingFileWriter​(java.io.File file, java.lang.String encoding, java.lang.String newline)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.io.Writer append​(java.lang.CharSequence text)  
      • Methods inherited from class java.io.OutputStreamWriter

        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
    • Field Detail

      • newline

        java.lang.String newline
    • Constructor Detail

      • EncodingFileWriter

        public EncodingFileWriter​(java.io.File file,
                                  java.lang.String newline)
                           throws java.io.IOException
        Throws:
        java.io.IOException
      • EncodingFileWriter

        public EncodingFileWriter​(java.io.File file,
                                  java.lang.String encoding,
                                  java.lang.String newline)
                           throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • append

        public java.io.Writer append​(java.lang.CharSequence text)
                              throws java.io.IOException
        Specified by:
        append in interface java.lang.Appendable
        Overrides:
        append in class java.io.OutputStreamWriter
        Throws:
        java.io.IOException