Interface CompilerConnection
- All Superinterfaces:
AutoCloseable,Closeable
- All Known Implementing Classes:
ProcessConnection,SocketConnection,StreamConnection
Abstract representation of a connection to an embedded sass compiler.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionsass.embedded_protocol.EmbeddedSass.OutboundMessageRead aEmbeddedSass.OutboundMessagefrom the compiler.voidsendMessage(sass.embedded_protocol.EmbeddedSass.InboundMessage inboundMessage) Send the givenEmbeddedSass.InboundMessageto the compiler.
-
Method Details
-
sendMessage
void sendMessage(sass.embedded_protocol.EmbeddedSass.InboundMessage inboundMessage) throws IOException Send the givenEmbeddedSass.InboundMessageto the compiler.- Parameters:
inboundMessage- TheEmbeddedSass.InboundMessageto send.- Throws:
IOException- If the communication with the compiler fails.
-
readResponse
Read aEmbeddedSass.OutboundMessagefrom the compiler.- Returns:
- The next
EmbeddedSass.OutboundMessagesent by the compiler. - Throws:
IOException- If the communication with the compiler fails.
-