DCT Lightfoot v3 API specification

java.io
Class OutputStream

java.lang.Object
  |
  +--java.io.OutputStream
All Implemented Interfaces:
Writable
Direct Known Subclasses:
ByteArrayOutputStream, FlashFileOutputStream, HandleOutputStream, SocketOutputStream, SwitchableOutputStream

public abstract class OutputStream
extends Object
implements Writable

The superclass of all byte writing streams


Constructor Summary
OutputStream()
          Create a new output stream
 
Method Summary
 void close()
          Close the buffer
 void flush()
          Flush the buffer
 void write(byte[] b)
          Write an array of bytes
 void write(byte[] b, int off, int len)
          Write parts of the array of bytes
abstract  void write(int b)
          Write a byte
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OutputStream

public OutputStream()
Create a new output stream

Method Detail

close

public void close()
           throws IOException
Close the buffer

Throws:
IOException - if there is an IO error

flush

public void flush()
           throws IOException
Flush the buffer

Throws:
IOException - if there is an IO error

write

public abstract void write(int b)
                    throws IOException
Write a byte

Specified by:
write in interface Writable
Parameters:
b - The byte to write
Throws:
IOException - if there is an IO error

write

public void write(byte[] b)
           throws IOException
Write an array of bytes

Parameters:
b - The bytes to write
Throws:
IOException - if there is an IO error

write

public void write(byte[] b,
                  int off,
                  int len)
           throws IOException
Write parts of the array of bytes

Specified by:
write in interface Writable
Parameters:
b - The bytes to write
off - The offset into the array
len - The number of bytes to write
Throws:
IOException - if there is an IO error

DCT Lightfoot v3 API specification

DCT Lightfoot v3 API specification