Package com.drew.lang

Class NullOutputStream

  • All Implemented Interfaces:,, java.lang.AutoCloseable

    public class NullOutputStream
    An implementation of OutputSteam that ignores write requests by doing nothing. This class may be useful in tests.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void write​(int b)  
      • Methods inherited from class

        close, flush, nullOutputStream, write, write
      • Methods inherited from class java.lang.Object

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

      • NullOutputStream

        public NullOutputStream()
    • Method Detail

      • write

        public void write​(int b)
        Specified by:
        write in class