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
Nested ClassesModifier and TypeClassDescriptionstatic classstatic interface -
Constructor Summary
ConstructorsConstructorDescriptionFramedDevice(ICommandLineDevice hardware) FramedDevice(ICommandLineDevice hardware, String format) FramedDevice(ICommandLineDevice hardware, String format, boolean touppercase) FramedDevice(ICommandLineDevice hardware, FramedDevice.IFramer framer) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()booleanisValid()static voidvoidopen()readString(boolean wait) booleanready()voidsendString(String cmd) String[]sendString(String[] cmds, int count, int returnLines, int delay, int waitForAnswer) String[]sendString(String cmd, int returnLines, int waitForAnswer) voidsetDebug(int debug) voidsetTimeout(int timeout) voidsetVerbose(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:
IOExceptionHarcHardwareException
-
sendString
public String[] sendString(String cmd, int returnLines, int waitForAnswer) throws IOException, HarcHardwareException - Throws:
IOExceptionHarcHardwareException
-
sendString
- Throws:
IOExceptionHarcHardwareException
-
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:
IOExceptionHarcHardwareException
-
isValid
public boolean isValid() -
open
- Throws:
HarcHardwareExceptionIOException
-
close
- Throws:
IOException
-