public interface ICommandLineDevice extends IHarcHardware
Modifier and Type | Method and Description |
---|---|
void |
flushInput() |
String |
readString()
Reads a line of text.
|
String |
readString(boolean wait)
Reads a line of text.
|
boolean |
ready()
Tells whether this stream is ready to be read.
|
void |
sendString(String cmd)
Sends a command (a String) to the instance.
|
getVersion, isValid, open, setDebug, setTimeout, setVerbosity
void sendString(String cmd) throws IOException
cmd
- Command string to be sent.IOException
String readString() throws IOException
IOException
String readString(boolean wait) throws IOException
wait
- if true, wait until something arrives, otherwise return null if nothing there.IOException
boolean ready() throws IOException
IOException
- If an I/O error occursvoid flushInput() throws IOException
IOException
Copyright © 2016. All rights reserved.