Interface PageantLibrary.Pipe

All Superinterfaces:
AutoCloseable, Closeable
All Known Implementing Classes:
PageantLibrary.PipeImpl
Enclosing class:
PageantLibrary

static interface PageantLibrary.Pipe extends Closeable
An abstraction for a bi-directional pipe.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    receive(byte[] data)
    Reads bytes from the pipe until data is full.
    void
    send(byte[] message)
    Send the given message.

    Methods inherited from interface java.io.Closeable

    close
  • Method Details

    • send

      void send(byte[] message) throws IOException
      Send the given message.
      Parameters:
      message - to send
      Throws:
      IOException - on errors
    • receive

      void receive(byte[] data) throws IOException
      Reads bytes from the pipe until data is full.
      Parameters:
      data - to read
      Throws:
      IOException - on errors