Class NullOutputStream

    • Constructor Detail

      • NullOutputStream

        public NullOutputStream()
        Default constructor.
    • Method Detail

      • write

        public void write​(int i)
                   throws IOException
        Writes to the stream (in this case, does nothing).
        Specified by:
        write in class OutputStream
        Parameters:
        i - the value.
        Throws:
        IOException - if there is an I/O problem.
      • write

        public void write​(byte[] bytes)
                   throws IOException
        Writes to the stream (in this case, does nothing).
        Overrides:
        write in class OutputStream
        Parameters:
        bytes - the bytes.
        Throws:
        IOException - if there is an I/O problem.
      • write

        public void write​(byte[] bytes,
                          int off,
                          int len)
                   throws IOException
        Writes to the stream (in this case, does nothing).
        Overrides:
        write in class OutputStream
        Parameters:
        bytes - the bytes.
        off - the start offset in the data.
        len - the number of bytes to write.
        Throws:
        IOException - if there is an I/O problem.