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

## jcontrol.io
Interface ComplexOutputStream

All Superinterfaces:
  BasicOutputStream

All Known Implementing Classes:
  FT1_2, RS232

    public interface ComplexOutputStream

extends BasicOutputStream

Provides a set of high-level communication methods for writing.

Author:
  boehme
Available on JControl Devices:

  all

Method Summary
`void` | `writeUTF8(String buffer)` Writes a single `String` to the stream.

Methods inherited from interface jcontrol.io.BasicOutputStream
`close, write, write`

Method Detail

### writeUTF8

    void writeUTF8(String buffer)
                   throws IOException

  Writes a single `String` to the stream. This is a blocking operation, if the transmit device is busy the current `Thread` is yielded and should be woken up if the device becomes ready. Implementing classes may throw an `IOException` if a timeout is reached. The String is written in raw UTF8-Format with two preceiding bytes specifying the size of the String.

  Parameters:
    `buffer` - the `String` to write
  Throws:
    `IOException` - if an error occurs
  See Also:
    `String`

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