站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 4.0.1 sp1 common API Documentation 英文版文档

NullOutputStream (JBoss/Common API) - JBoss 4.0.1 sp1 common API Documentation 英文版文档


org.jboss.util.stream
Class NullOutputStream

java.lang.Object
  extended byjava.io.OutputStream
      extended byorg.jboss.util.stream.NullOutputStream

public final class NullOutputStream
extends OutputStream

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.

Version:
$Revision: 1.1 $
Author:
Jason Dillon

Field Summary
static NullOutputStream STREAM
          A default null output stream.
 
Constructor Summary
NullOutputStream()
           
 
Method Summary
 void close()
          Non-operation.
 void flush()
          Non-operation.
 void write(byte[] bytes)
          Non-operation.
 void write(byte[] bytes, int offset, int length)
          Non-operation.
 void write(int b)
          Non-operation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STREAM

public static final NullOutputStream STREAM
A default null output stream.

Constructor Detail

NullOutputStream

public NullOutputStream()
Method Detail

write

public void write(int b)
Non-operation.


flush

public void flush()
Non-operation.


close

public void close()
Non-operation.


write

public void write(byte[] bytes)
Non-operation.


write

public void write(byte[] bytes,
                  int offset,
                  int length)
Non-operation.



Copyright © 2002 JBoss Group, LLC. All Rights Reserved.