com.twelvemonkeys.io
Class NullOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by com.twelvemonkeys.io.NullOutputStream
All Implemented Interfaces:
Closeable, Flushable

public class NullOutputStream
extends 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
NullOutputStream()
          Creates a NullOutputStream.
 
Method Summary
 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
 
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 IOException
This implementation does nothing.

Specified by:
write in class OutputStream
Throws:
IOException

write

public void write(byte[] pBytes)
           throws IOException
This implementation does nothing.

Overrides:
write in class OutputStream
Throws:
IOException

write

public void write(byte[] pBytes,
                  int pOffset,
                  int pLength)
           throws IOException
This implementation does nothing.

Overrides:
write in class OutputStream
Throws:
IOException


Copyright © 2015. All Rights Reserved.