RoboJDETM v2.0

java.io
Class OutputStream

java.lang.Object
  extended by java.io.OutputStream
Direct Known Subclasses:
DebugOutputStream, DisplayOutputStream, FilterOutputStream, OutputStreamTee

public abstract class OutputStream
extends Object

Abstract base class for output streams.


Constructor Summary
OutputStream()
          Constructor for subclasses to call.
 
Method Summary
 void close()
          Close the output stream.
 void flush()
          Flush the data to the output stream.
 void write(byte[] buffer)
          Writes the specified bytes to the output stream.
 void write(byte[] buffer, int offset, int length)
          Writes bytes from the specified byte array to the output stream.
abstract  void write(int value)
          Writes a byte to the output stream.
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait
 

Constructor Detail

OutputStream

public OutputStream()
Constructor for subclasses to call.

Method Detail

close

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

This implementation does nothing. Subclasses should override this method as necessary.

Throws:
IOException

flush

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

This implementation does nothing. Subclasses should override this method as necessary.

Throws:
IOException

write

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

Parameters:
buffer - bytes to output
Throws:
IOException

write

public void write(byte[] buffer,
                  int offset,
                  int length)
           throws IOException
Writes bytes from the specified byte array to the output stream.

Parameters:
buffer - byte array
offset - offset of the first byte to write
length - number of bytes to write
Throws:
IOException

write

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

Subclasses must implement this method.

Parameters:
value - byte to write
Throws:
IOException

RoboJDETM v2.0

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