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, setVerbosevoid sendString(String cmd) throws IOException, HarcHardwareException
cmd - Command string to be sent.IOExceptionHarcHardwareExceptionString readString() throws IOException
IOExceptionString readString(boolean wait) throws IOException
wait - if true, wait until something arrives, otherwise return null if nothing there.IOExceptionboolean ready()
throws IOException
IOException - If an I/O error occursvoid flushInput()
throws IOException
IOExceptionCopyright © 2020. All rights reserved.