? NullWriter

java.lang.Object
java.io.Writer
org.apache.commons.io.output.NullWriter
????????:
Closeable, Flushable, Appendable, AutoCloseable

public class NullWriter extends Writer
Writes all data to the famous /dev/null.

This Writer has no destination (file/socket etc.) and all characters written to it are ignored and lost.

  • ??????

  • ???????

    • NullWriter

      public NullWriter()
      Constructs a new NullWriter.
  • ??????

    • append

      public Writer append(char c)
      Does nothing - output to /dev/null.
      ???:
      append ???? Appendable
      ??:
      append ??? Writer
      ??:
      c - The character to write
      ??:
      this writer
      ???????:
      2.0
    • append

      public Writer append(CharSequence csq, int start, int end)
      Does nothing - output to /dev/null.
      ???:
      append ???? Appendable
      ??:
      append ??? Writer
      ??:
      csq - The character sequence to write
      start - The index of the first character to write
      end - The index of the first character to write (exclusive)
      ??:
      this writer
      ???????:
      2.0
    • append

      public Writer append(CharSequence csq)
      Does nothing - output to /dev/null.
      ???:
      append ???? Appendable
      ??:
      append ??? Writer
      ??:
      csq - The character sequence to write
      ??:
      this writer
      ???????:
      2.0
    • write

      public void write(int idx)
      Does nothing - output to /dev/null.
      ??:
      write ??? Writer
      ??:
      idx - The character to write
    • write

      public void write(char[] chr)
      Does nothing - output to /dev/null.
      ??:
      write ??? Writer
      ??:
      chr - The characters to write
    • write

      public void write(char[] chr, int st, int end)
      Does nothing - output to /dev/null.
      ???:
      write ??? Writer
      ??:
      chr - The characters to write
      st - The start offset
      end - The number of characters to write
    • write

      public void write(String str)
      Does nothing - output to /dev/null.
      ??:
      write ??? Writer
      ??:
      str - The string to write
    • write

      public void write(String str, int st, int end)
      Does nothing - output to /dev/null.
      ??:
      write ??? Writer
      ??:
      str - The string to write
      st - The start offset
      end - The number of characters to write
    • flush

      public void flush()
      ???:
      flush ???? Flushable
      ???:
      flush ??? Writer
      ????:
    • close

      public void close()
      ???:
      close ???? AutoCloseable
      ???:
      close ???? Closeable
      ???:
      close ??? Writer
      ????: