SK.gnome.dwarf.utils.io
Class NullOutputStream

java.lang.Object
  extended byjava.io.OutputStream
      extended bySK.gnome.dwarf.utils.io.NullOutputStream

public class NullOutputStream
extends java.io.OutputStream

Provides output stream discarding all data.


Field Summary
static java.io.OutputStream INSTANCE
          The object instance.
 
Constructor Summary
NullOutputStream()
           
 
Method Summary
 void write(byte[] b, int off, int len)
          Writes len bytes from the specified byte array starting at offset off to this output stream.
 void write(int b)
          Writes the specified byte to this output stream.
 
Methods inherited from class java.io.OutputStream
close, flush, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final java.io.OutputStream INSTANCE
The object instance.

Constructor Detail

NullOutputStream

public NullOutputStream()
Method Detail

write

public void write(int b)
           throws java.io.IOException
Writes the specified byte to this output stream.

This method does nothing.

Throws:
java.io.IOException

write

public void write(byte[] b,
                  int off,
                  int len)
           throws java.io.IOException
Writes len bytes from the specified byte array starting at offset off to this output stream.

This method does nothing.

Throws:
java.io.IOException


Copyright (c) 1999-2005, Gnome Ltd. All rights reserved.