Interface CompilerConnection

All Superinterfaces:
AutoCloseable, Closeable
All Known Implementing Classes:
ProcessConnection, SocketConnection, StreamConnection

public interface CompilerConnection extends Closeable
Abstract representation of a connection to an embedded sass compiler.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    sass.embedded_protocol.EmbeddedSass.OutboundMessage
    Read a EmbeddedSass.OutboundMessage from the compiler.
    void
    sendMessage(sass.embedded_protocol.EmbeddedSass.InboundMessage inboundMessage)
    Send the given EmbeddedSass.InboundMessage to the compiler.

    Methods inherited from interface java.io.Closeable

    close
  • Method Details

    • sendMessage

      void sendMessage(sass.embedded_protocol.EmbeddedSass.InboundMessage inboundMessage) throws IOException
      Send the given EmbeddedSass.InboundMessage to the compiler.
      Parameters:
      inboundMessage - The EmbeddedSass.InboundMessage to send.
      Throws:
      IOException - If the communication with the compiler fails.
    • readResponse

      sass.embedded_protocol.EmbeddedSass.OutboundMessage readResponse() throws IOException
      Read a EmbeddedSass.OutboundMessage from the compiler.
      Returns:
      The next EmbeddedSass.OutboundMessage sent by the compiler.
      Throws:
      IOException - If the communication with the compiler fails.