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 |
setVerbosity(boolean verbosity) |
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
IOException
public String[] sendString(String cmd, int returnLines, int waitForAnswer) throws IOException
IOException
public void sendString(String cmd) throws IOException
IOException
public boolean ready() throws IOException
IOException
public String readString() throws IOException
IOException
public String readString(boolean wait) throws IOException
IOException
public String getVersion() throws IOException
IOException
public void setVerbosity(boolean verbosity)
public void setDebug(int debug)
public void setTimeout(int timeout) throws IOException
IOException
public boolean isValid()
public void open() throws HarcHardwareException, IOException
HarcHardwareException
IOException
public void close() throws IOException
IOException
Copyright © 2016. All rights reserved.