net.sf.mmm.util.io.api
Class DevNullSource
java.lang.Object
java.io.InputStream
net.sf.mmm.util.io.api.DevNullSource
- All Implemented Interfaces:
- Closeable
public final class DevNullSource
- extends InputStream
This is an implementation of /dev/null
as InputStream
.
In other words the DevNullTarget
is a dummy InputStream
that
always has reached its end. It will never change its state so it can also be
closed
.
- Since:
- 1.0.0
- Author:
- Joerg Hohwiller (hohwille at users.sourceforge.net)
Method Summary |
int |
read()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INSTANCE
public static final DevNullSource INSTANCE
- The singleton instance.
DevNullSource
private DevNullSource()
- The constructor.
read
public int read()
throws IOException
-
- Specified by:
read
in class InputStream
- Throws:
IOException
Copyright © 2001-2010 mmm-Team. All Rights Reserved.