public abstract class StreamConnection extends Object implements CompilerConnection
| Constructor and Description |
|---|
StreamConnection() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract InputStream |
getInputStream() |
protected abstract OutputStream |
getOutputStream() |
sass.embedded_protocol.EmbeddedSass.OutboundMessage |
readResponse()
Read a
EmbeddedSass.OutboundMessage from the compiler. |
void |
sendMessage(sass.embedded_protocol.EmbeddedSass.InboundMessage inboundMessage)
Send the given
EmbeddedSass.InboundMessage to the compiler. |
protected abstract InputStream getInputStream() throws IOException
IOExceptionprotected abstract OutputStream getOutputStream() throws IOException
IOExceptionpublic void sendMessage(sass.embedded_protocol.EmbeddedSass.InboundMessage inboundMessage)
throws IOException
CompilerConnectionEmbeddedSass.InboundMessage to the compiler.sendMessage in interface CompilerConnectioninboundMessage - The EmbeddedSass.InboundMessage to send.IOException - If the communication with the compiler fails.public sass.embedded_protocol.EmbeddedSass.OutboundMessage readResponse()
throws IOException
CompilerConnectionEmbeddedSass.OutboundMessage from the compiler.readResponse in interface CompilerConnectionEmbeddedSass.OutboundMessage sent by the compiler.IOException - If the communication with the compiler fails.