Package com.twelvemonkeys.io
Class NullOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- com.twelvemonkeys.io.NullOutputStream
-
- All Implemented Interfaces:
java.io.Closeable
,java.io.Flushable
,java.lang.AutoCloseable
public class NullOutputStream extends java.io.OutputStream
AnOutputStream
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 aNullOutputStream
.
-
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.
-
-
-
Method Detail
-
write
public void write(int pByte) throws java.io.IOException
This implementation does nothing.- Specified by:
write
in classjava.io.OutputStream
- Throws:
java.io.IOException
-
write
public void write(byte[] pBytes) throws java.io.IOException
This implementation does nothing.- Overrides:
write
in classjava.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 classjava.io.OutputStream
- Throws:
java.io.IOException
-
-