public abstract class CommandlineStreamParser extends Object implements ProtocolStreamParser
Modifier and Type | Field and Description |
---|---|
protected BufferedReader |
m_In |
Constructor and Description |
---|
CommandlineStreamParser() |
Modifier and Type | Method and Description |
---|---|
protected abstract BufferedReader |
createBufferedReader(InputStream in) |
void |
initializeParsingStream(InputStream in)
Initializes the stream for reading commands based on a specific protocols notion
of draining an InputStream.
|
CommandInvocationObject |
readCommand()
One Command per line.
|
protected BufferedReader m_In
protected abstract BufferedReader createBufferedReader(InputStream in) throws Exception
Exception
public void initializeParsingStream(InputStream in) throws Exception
ProtocolStreamParser
initializeParsingStream
in interface ProtocolStreamParser
Exception
public CommandInvocationObject readCommand() throws Exception
readCommand
in interface ProtocolStreamParser
Exception
Copyright © 2023. All rights reserved.