Class NullOutputStream

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

    public class NullOutputStream
    extends java.io.OutputStream
    An OutputStream implementation that works as a sink.
    Version:
    $Id: //depot/branches/personal/haraldk/twelvemonkeys/release-2/twelvemonkeys-core/src/main/java/com/twelvemonkeys/io/NullOutputStream.java#2 $
    Author:
    Harald Kuhr
    • Constructor Summary

      Constructors 
      Constructor Description
      NullOutputStream()
      Creates a NullOutputStream.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void write​(byte[] pBytes)
      This implementation does nothing.
      void write​(byte[] pBytes, int pOffset, int pLength)
      This implementation does nothing.
      void write​(int pByte)
      This implementation does nothing.
      • Methods inherited from class java.io.OutputStream

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

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

      • NullOutputStream

        public NullOutputStream()
        Creates a NullOutputStream.
    • Method Detail

      • write

        public void write​(int pByte)
                   throws java.io.IOException
        This implementation does nothing.
        Specified by:
        write in class java.io.OutputStream
        Throws:
        java.io.IOException
      • write

        public void write​(byte[] pBytes)
                   throws java.io.IOException
        This implementation does nothing.
        Overrides:
        write in class java.io.OutputStream
        Throws:
        java.io.IOException
      • write

        public void write​(byte[] pBytes,
                          int pOffset,
                          int pLength)
                   throws java.io.IOException
        This implementation does nothing.
        Overrides:
        write in class java.io.OutputStream
        Throws:
        java.io.IOException