Interface PageantLibrary.Pipe

  • All Superinterfaces:
    java.lang.AutoCloseable, java.io.Closeable
    All Known Implementing Classes:
    PageantLibrary.PipeImpl
    Enclosing class:
    PageantLibrary

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

      All Methods Instance Methods Abstract Methods 
      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 Detail

      • send

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

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