Package org.harctoolbox.harchardware
Class FramedDevice
java.lang.Object
org.harctoolbox.harchardware.FramedDevice
This class is basically the encapsulation of a ICommandLineDevice and a Framer (a formatter for the lines).
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static interface
-
Constructor Summary
ConstructorDescriptionFramedDevice
(ICommandLineDevice hardware) FramedDevice
(ICommandLineDevice hardware, String format) FramedDevice
(ICommandLineDevice hardware, String format, boolean touppercase) FramedDevice
(ICommandLineDevice hardware, FramedDevice.IFramer framer) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
boolean
isValid()
static void
void
open()
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)
-
Constructor Details
-
FramedDevice
-
FramedDevice
-
FramedDevice
-
FramedDevice
-
-
Method Details
-
main
-
sendString
public String[] sendString(String[] cmds, int count, int returnLines, int delay, int waitForAnswer) throws IOException, HarcHardwareException - Throws:
IOException
HarcHardwareException
-
sendString
public String[] sendString(String cmd, int returnLines, int waitForAnswer) throws IOException, HarcHardwareException - Throws:
IOException
HarcHardwareException
-
sendString
- Throws:
IOException
HarcHardwareException
-
ready
- Throws:
IOException
-
readString
- Throws:
IOException
-
readString
- Throws:
IOException
-
getVersion
- Throws:
IOException
-
setVerbose
public void setVerbose(boolean verbose) -
setDebug
public void setDebug(int debug) -
setTimeout
- Throws:
IOException
HarcHardwareException
-
isValid
public boolean isValid() -
open
- Throws:
HarcHardwareException
IOException
-
close
- Throws:
IOException
-