Class NullOutputStream

    • Method Detail

      • instance

        public static NullOutputStream instance()
        Retrieves an instance of this null output stream.
        Returns:
        An instance of this null output stream.
      • nullPrintStream

        public static PrintStream nullPrintStream()
        Retrieves a print stream using this null output stream.
        Returns:
        A print stream using this null output stream.
      • flush

        public void flush()
        Flushes the output stream. This has no effect.
        Specified by:
        flush in interface Flushable
        Overrides:
        flush in class OutputStream
      • write

        public void write​(byte[] b)
        Writes the provided data to this output stream. This has no effect.
        Overrides:
        write in class OutputStream
        Parameters:
        b - The byte array containing the data to be written.
      • write

        public void write​(byte[] b,
                          int off,
                          int len)
        Writes the provided data to this output stream. This has no effect.
        Overrides:
        write in class OutputStream
        Parameters:
        b - The byte array containing the data to be written.
        off - The offset at which the real data begins.
        len - The number of bytes to be written.
      • write

        public void write​(int b)
        Writes the provided byte to this output stream. This has no effect.
        Specified by:
        write in class OutputStream
        Parameters:
        b - The byte to be written.