net.sf.mmm.util.io.api
Class DevNullSource

java.lang.Object
  extended by java.io.InputStream
      extended by 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)

Field Summary
static DevNullSource INSTANCE
          The singleton instance.
 
Constructor Summary
private DevNullSource()
          The constructor.
 
Method Summary
 int read()
          
 
Methods inherited from class java.io.InputStream
available, close, mark, markSupported, read, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final DevNullSource INSTANCE
The singleton instance.

Constructor Detail

DevNullSource

private DevNullSource()
The constructor.

Method Detail

read

public int read()
         throws IOException

Specified by:
read in class InputStream
Throws:
IOException


Copyright © 2001-2010 mmm-Team. All Rights Reserved.