Save This Page
Home » jboss-5.0.0.CR1-src » org » jboss » util » stream » [javadoc | source]
org.jboss.util.stream
public final class: NullOutputStream [javadoc | source]
java.lang.Object
   java.io.OutputStream
      org.jboss.util.stream.NullOutputStream

All Implemented Interfaces:
    Closeable, Flushable

A null OutputStream. All values passed to #write(int) are discarded. Calls to #flush() and #close() are ignored.

All methods are declared NOT to throw IOExceptions.

Field Summary
public static final  NullOutputStream STREAM    A default null output stream. 
Method from org.jboss.util.stream.NullOutputStream Summary:
close,   flush,   write,   write,   write
Methods from java.io.OutputStream:
close,   flush,   write,   write,   write
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.jboss.util.stream.NullOutputStream Detail:
 public  void close() 
    Non-operation.
 public  void flush() 
    Non-operation.
 public  void write(int b) 
    Non-operation.
 public  void write(byte[] bytes) 
    Non-operation.
 public  void write(byte[] bytes,
    int offset,
    int length) 
    Non-operation.