public class FramedDevice extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
FramedDevice.Framer |
static interface |
FramedDevice.IFramer |
| Constructor and Description |
|---|
FramedDevice(ICommandLineDevice hardware) |
FramedDevice(ICommandLineDevice hardware,
FramedDevice.IFramer framer) |
FramedDevice(ICommandLineDevice hardware,
String format) |
FramedDevice(ICommandLineDevice hardware,
String format,
boolean touppercase) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
String |
getVersion() |
boolean |
isValid() |
static void |
main(String[] args) |
void |
open() |
String |
readString() |
String |
readString(boolean wait) |
boolean |
ready() |
void |
sendString(String cmd) |
String[] |
sendString(String[] cmds,
int count,
int returnLines,
int delay,
int waitForAnswer) |
String[] |
sendString(String cmd,
int returnLines,
int waitForAnswer) |
void |
setDebug(int debug) |
void |
setTimeout(int timeout) |
void |
setVerbose(boolean verbose) |
public FramedDevice(ICommandLineDevice hardware, FramedDevice.IFramer framer)
public FramedDevice(ICommandLineDevice hardware, String format, boolean touppercase)
public FramedDevice(ICommandLineDevice hardware, String format)
public FramedDevice(ICommandLineDevice hardware)
public static void main(String[] args)
public String[] sendString(String[] cmds, int count, int returnLines, int delay, int waitForAnswer) throws IOException, HarcHardwareException
IOExceptionHarcHardwareExceptionpublic String[] sendString(String cmd, int returnLines, int waitForAnswer) throws IOException, HarcHardwareException
IOExceptionHarcHardwareExceptionpublic void sendString(String cmd) throws IOException, HarcHardwareException
IOExceptionHarcHardwareExceptionpublic boolean ready()
throws IOException
IOExceptionpublic String readString() throws IOException
IOExceptionpublic String readString(boolean wait) throws IOException
IOExceptionpublic String getVersion() throws IOException
IOExceptionpublic void setVerbose(boolean verbose)
public void setDebug(int debug)
public void setTimeout(int timeout)
throws IOException
IOExceptionpublic boolean isValid()
public void open()
throws HarcHardwareException,
IOException
HarcHardwareExceptionIOExceptionpublic void close()
throws IOException
IOExceptionCopyright © 2020. All rights reserved.