Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## jcontrol.io
Class OutputStream

    java.lang.Object
      jcontrol.io.OutputStream

Direct Known Subclasses:
  ByteArrayOutputStream, DataOutputStream

    public abstract class OutputStream

extends Object

OutputStreams can be used to send single bytes and arrays of bytes over a stream connection.

Constructor Summary
`OutputStream()`

Method Summary
`abstract void` | `close()` Closes the stream.
`abstract void` | `flush()` Flushes the stream by forcing the output of internally buffered data.
`void` | `write(byte[] b)` Writes an array of bytes to the OutputStream.
`abstract void` | `write(byte[] b, int start, int length)` Writes a part of an array to the OutputStream.
`abstract void` | `write(int b)` Writes a single byte to the OutputStream.

Methods inherited from class java.lang.Object
`clone, equals, getClass, notifyAll, toString, wait`

Constructor Detail

### OutputStream

    public OutputStream()

Method Detail

### write

    public abstract void write(int b)
                        throws IOException

  Writes a single byte to the OutputStream.

  Parameters:
    `b` - byte to write
  Throws:
    `IOException` - occurs on I/O errors or when the stream is closed

### write

    public void write(byte[] b)
               throws IOException

  Writes an array of bytes to the OutputStream.

  Parameters:
    `b` - array containing the data to send
  Throws:
    `IOException` - occurs on I/O errors or when the stream is closed

### write

    public abstract void write(byte[] b,
                               int start,
                               int length)
                        throws IOException

  Writes a part of an array to the OutputStream.

  Parameters:
    `b` - array containing the data to send
    `start` - index of the first byte to send in the array
    `length` - number of bytes to send
  Throws:
    `IOException` - occurs on I/O errors or when the stream is closed

### flush

    public abstract void flush()
                        throws IOException

  Flushes the stream by forcing the output of internally buffered data.

  Throws:
    `IOException` - occurs on I/O errors or when the stream is closed

### close

    public abstract void close()
                        throws IOException

  Closes the stream.

  Throws:
    `IOException` - if stream is already closed

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD