Class StreamConnection
java.lang.Object
de.larsgrefer.sass.embedded.connection.StreamConnection
- All Implemented Interfaces:
CompilerConnection,Closeable,AutoCloseable
- Direct Known Subclasses:
ProcessConnection,SocketConnection
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract InputStreamprotected abstract OutputStreamsass.embedded_protocol.EmbeddedSass.OutboundMessageRead aEmbeddedSass.OutboundMessagefrom the compiler.voidsendMessage(sass.embedded_protocol.EmbeddedSass.InboundMessage inboundMessage) Send the givenEmbeddedSass.InboundMessageto the compiler.
-
Constructor Details
-
StreamConnection
public StreamConnection()
-
-
Method Details
-
getInputStream
- Throws:
IOException
-
getOutputStream
- Throws:
IOException
-
sendMessage
public void sendMessage(sass.embedded_protocol.EmbeddedSass.InboundMessage inboundMessage) throws IOException Description copied from interface:CompilerConnectionSend the givenEmbeddedSass.InboundMessageto the compiler.- Specified by:
sendMessagein interfaceCompilerConnection- Parameters:
inboundMessage- TheEmbeddedSass.InboundMessageto send.- Throws:
IOException- If the communication with the compiler fails.
-
readResponse
Description copied from interface:CompilerConnectionRead aEmbeddedSass.OutboundMessagefrom the compiler.- Specified by:
readResponsein interfaceCompilerConnection- Returns:
- The next
EmbeddedSass.OutboundMessagesent by the compiler. - Throws:
IOException- If the communication with the compiler fails.
-