Class CRLFPrintWriter

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

    public class CRLFPrintWriter
    extends java.io.PrintWriter
    A PrintWriter that ends lines with a carriage return-line feed (CRLF).

    Concurrency

    This class is as synchronized as PrintWriter.
    Version:
    $Revision$
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected boolean autoFlush  
      • Fields inherited from class java.io.PrintWriter

        out
      • Fields inherited from class java.io.Writer

        lock
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void ensureOpen()  
      void println()  
      • Methods inherited from class java.io.PrintWriter

        append, append, append, checkError, clearError, close, flush, format, format, print, print, print, print, print, print, print, print, print, printf, printf, println, println, println, println, println, println, println, println, println, setError, write, write, write, write, write
      • Methods inherited from class java.io.Writer

        nullWriter
      • Methods inherited from class java.lang.Object

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

      • autoFlush

        protected boolean autoFlush
    • Constructor Detail

      • CRLFPrintWriter

        public CRLFPrintWriter​(java.io.Writer out)
      • CRLFPrintWriter

        public CRLFPrintWriter​(java.io.Writer out,
                               boolean autoFlush)
      • CRLFPrintWriter

        public CRLFPrintWriter​(java.io.OutputStream out)
      • CRLFPrintWriter

        public CRLFPrintWriter​(java.io.OutputStream out,
                               boolean autoFlush)
    • Method Detail

      • ensureOpen

        protected void ensureOpen()
                           throws java.io.IOException
        Throws:
        java.io.IOException
      • println

        public void println()
        Overrides:
        println in class java.io.PrintWriter