Package edu.uky.ai.io

Class DummyWriter

java.lang.Object
java.io.Writer
edu.uky.ai.io.DummyWriter
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable, java.lang.Appendable, java.lang.AutoCloseable

public class DummyWriter
extends java.io.Writer
An implementation of Writer that does nothing.
Author:
Stephen G. Ware
  • Constructor Summary

    Constructors 
    Constructor Description
    DummyWriter()  
  • Method Summary

    Modifier and Type Method Description
    void close()  
    void flush()  
    void write​(char[] arg0, int arg1, int arg2)  

    Methods inherited from class java.io.Writer

    append, append, append, nullWriter, write, write, write, write

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • write

      public void write​(char[] arg0, int arg1, int arg2) throws java.io.IOException
      Specified by:
      write in class java.io.Writer
      Throws:
      java.io.IOException
    • flush

      public void flush() throws java.io.IOException
      Specified by:
      flush in interface java.io.Flushable
      Specified by:
      flush in class java.io.Writer
      Throws:
      java.io.IOException
    • close

      public void close() throws java.io.IOException
      Specified by:
      close in interface java.lang.AutoCloseable
      Specified by:
      close in interface java.io.Closeable
      Specified by:
      close in class java.io.Writer
      Throws:
      java.io.IOException