RoboJDETM v2.0

java.io
Class FilterOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by java.io.FilterOutputStream
Direct Known Subclasses:
PrintStream

public class FilterOutputStream
extends OutputStream

Base class for all filtering output streams.

This base implementation passes all calls through to the stream.


Field Summary
protected  OutputStream out
          Reference to the stream that is receiving the filtered output.
 
Constructor Summary
FilterOutputStream(OutputStream outputStream)
          Constructs a FilterOutputStream.
 
Method Summary
 void close()
          Close the output stream.
 void flush()
          Flush the data to the output stream.
 void write(byte[] b)
          Writes the specified bytes to the output stream.
 void write(byte[] b, int off, int len)
          Writes bytes from the specified byte array to the output stream.
 void write(int b)
          Writes a byte to the output stream.
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait
 

Field Detail

out

protected OutputStream out
Reference to the stream that is receiving the filtered output.

Constructor Detail

FilterOutputStream

public FilterOutputStream(OutputStream outputStream)
Constructs a FilterOutputStream.

Parameters:
outputStream - output stream to filter
Method Detail

close

public void close()
           throws IOException
Close the output stream.

Overrides:
close in class OutputStream
Throws:
IOException

flush

public void flush()
           throws IOException
Flush the data to the output stream.

Overrides:
flush in class OutputStream
Throws:
IOException

write

public void write(byte[] b)
           throws IOException
Writes the specified bytes to the output stream.

Overrides:
write in class OutputStream
Parameters:
b - bytes to output
Throws:
IOException

write

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

Overrides:
write in class OutputStream
Parameters:
b - byte array
off - offset of the first byte to write
len - number of bytes to write
Throws:
IOException

write

public void write(int b)
           throws IOException
Writes a byte to the output stream.

Specified by:
write in class OutputStream
Parameters:
b - byte to write
Throws:
IOException

RoboJDETM v2.0

Copyright (c) 2003-2009 RidgeSoft, LLC. All rights reserved.
www.ridgesoft.com