public class MachineDialogParser extends Object
Constructor and Description |
---|
MachineDialogParser() |
Modifier and Type | Method and Description |
---|---|
void |
cliAbort()
abort command.
|
void |
cliDownloadLog(OutputStream out)
log command.
|
Object |
cliEnvironmentGet(String name)
env-get command.
|
void |
cliEnvironmentSet(String name,
Object value)
env-set command.
|
void |
cliInstall()
install command.
|
void |
cliNoop()
noop command.
|
void |
cliQuit()
quit command.
|
Event.Base |
nextEvent()
Get next event from stream.
|
Event.Base |
nextEvent(OutputStream out)
Get next event from stream.
|
void |
sendResponse(Event.Base bevent)
Send response of an event.
|
void |
setStreams(InputStream incoming,
OutputStream outgoing)
Set the dialog streams.
|
public void setStreams(InputStream incoming, OutputStream outgoing)
incoming
- incoming stream.outgoing
- outgoing stream.public Object cliEnvironmentGet(String name) throws IOException
name
- variable name.IOException
- on unexpected connection terminationpublic void cliEnvironmentSet(String name, Object value) throws IOException
name
- variable name.value
- value to set, type of object is attached (null, Integer, String, String[]).IOException
- on unexpected connection terminationpublic void cliDownloadLog(OutputStream out) throws IOException
out
- stream to write log into.IOException
- on unexpected connection terminationpublic void cliNoop() throws IOException
IOException
- on unexpected connection terminationpublic void cliQuit() throws IOException
IOException
- on unexpected connection terminationpublic void cliInstall() throws IOException
IOException
- on unexpected connection terminationpublic void cliAbort() throws IOException
IOException
- on unexpected connection terminationpublic Event.Base nextEvent(OutputStream out) throws IOException, SoftError
out
- output stream for multistring display.IOException
- on unexpected connection terminationSoftError
public Event.Base nextEvent() throws IOException
IOException
- on unexpected connection terminationpublic void sendResponse(Event.Base bevent)
bevent
- event that holds the response.Copyright © 2022. All rights reserved.