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.OutboundMessage
Read aEmbeddedSass.OutboundMessage
from the compiler.void
sendMessage
(sass.embedded_protocol.EmbeddedSass.InboundMessage inboundMessage) Send the givenEmbeddedSass.InboundMessage
to the compiler.
-
Method Details
-
sendMessage
void sendMessage(sass.embedded_protocol.EmbeddedSass.InboundMessage inboundMessage) throws IOException Send the givenEmbeddedSass.InboundMessage
to the compiler.- Parameters:
inboundMessage
- TheEmbeddedSass.InboundMessage
to send.- Throws:
IOException
- If the communication with the compiler fails.
-
readResponse
Read aEmbeddedSass.OutboundMessage
from the compiler.- Returns:
- The next
EmbeddedSass.OutboundMessage
sent by the compiler. - Throws:
IOException
- If the communication with the compiler fails.
-