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.OutputStreamAnOutputStreamimplementation 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 $
-
-
Constructor Summary
Constructors Constructor Description NullOutputStream()Creates aNullOutputStream.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidwrite(byte[] pBytes)This implementation does nothing.voidwrite(byte[] pBytes, int pOffset, int pLength)This implementation does nothing.voidwrite(int pByte)This implementation does nothing.
-
-
-
Method Detail
-
write
public void write(int pByte) throws java.io.IOExceptionThis implementation does nothing.- Specified by:
writein classjava.io.OutputStream- Throws:
java.io.IOException
-
write
public void write(byte[] pBytes) throws java.io.IOExceptionThis implementation does nothing.- Overrides:
writein classjava.io.OutputStream- Throws:
java.io.IOException
-
write
public void write(byte[] pBytes, int pOffset, int pLength) throws java.io.IOExceptionThis implementation does nothing.- Overrides:
writein classjava.io.OutputStream- Throws:
java.io.IOException
-
-