Class NullWriter

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

    class NullWriter
    extends java.io.Writer
    Deprecated.
    NullWriter is an obsolete class provided only for binary compatibility with earlier versions of log4j and should not be used.
    • Field Summary

      • Fields inherited from class java.io.Writer

        lock
    • Constructor Summary

      Constructors 
      Constructor Description
      NullWriter()
      Deprecated.
       
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      void close()
      Deprecated.
       
      void flush()
      Deprecated.
       
      void write​(char[] cbuf, int off, int len)
      Deprecated.
       
      • Methods inherited from class java.io.Writer

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

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

      • NullWriter

        NullWriter()
        Deprecated.
    • Method Detail

      • close

        public void close()
        Deprecated.
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Specified by:
        close in class java.io.Writer
      • flush

        public void flush()
        Deprecated.
        Specified by:
        flush in interface java.io.Flushable
        Specified by:
        flush in class java.io.Writer
      • write

        public void write​(char[] cbuf,
                          int off,
                          int len)
        Deprecated.
        Specified by:
        write in class java.io.Writer