com.google.common.io
Class NullOutputStream

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

Deprecated. Use ByteStreams.nullOutputStream() instead. This class is scheduled to be removed in Guava release 15.0.

@Beta
@Deprecated
public final class NullOutputStream
extends java.io.OutputStream

Implementation of OutputStream that simply discards written bytes.

Since:
1.0

Constructor Summary
NullOutputStream()
          Deprecated.  
 
Method Summary
 void write(byte[] b, int off, int len)
          Deprecated. Discards the specified byte array.
 void write(int b)
          Deprecated. Discards the specified byte.
 
Methods inherited from class java.io.OutputStream
close, flush, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullOutputStream

public NullOutputStream()
Deprecated. 
Method Detail

write

public void write(int b)
Deprecated. 
Discards the specified byte.

Specified by:
write in class java.io.OutputStream

write

public void write(byte[] b,
                  int off,
                  int len)
Deprecated. 
Discards the specified byte array.

Overrides:
write in class java.io.OutputStream