de.fhg.igd.io
Class NullOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by de.fhg.igd.io.NullOutputStream
All Implemented Interfaces:
Closeable, Flushable

public class NullOutputStream
extends OutputStream

This class represents an null-outputstream

Version:
"$Id: NullOutputStream.java 1913 2007-08-08 02:41:53Z jpeters $"
Author:
Patric Kabus

Constructor Summary
NullOutputStream()
          Class constructor
 
Method Summary
 void write(byte[] b)
          This method sends an array of bytes to NULL
 void write(byte[] b, int off, int len)
          This method sends an array of bytes starting at offset with length len to NULL
 void write(int b)
          This method sends a byte to NULL
 
Methods inherited from class java.io.OutputStream
close, flush
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullOutputStream

public NullOutputStream()
Class constructor

Method Detail

write

public void write(int b)
This method sends a byte to NULL

Specified by:
write in class OutputStream
Parameters:
b - byte to be sent

write

public void write(byte[] b)
This method sends an array of bytes to NULL

Overrides:
write in class OutputStream
Parameters:
b - byte array to be sent

write

public void write(byte[] b,
                  int off,
                  int len)
This method sends an array of bytes starting at offset with length len to NULL

Overrides:
write in class OutputStream
Parameters:
b - byte array to be sent
off - start stream at specified offset
len - length of stream


Copyright © Fraunhofer Gesellschaft. All Rights Reserved.