com.java4less.textprinter
Class Command
java.lang.Object
|
+--com.java4less.textprinter.Command
- public class Command
- extends java.lang.Object
ESC control command
Constructor Summary |
Command(java.lang.String sName,
java.lang.String sControl)
|
Method Summary |
java.lang.String |
getCommand()
|
java.lang.String |
getName()
get name |
static java.lang.String |
parseCommand(java.lang.String s)
creates the printer command by parsing a description of the command:
1. it replaces the ESC string with the esc character
2. it parses the CRTL+ string
3. it removes empty characters |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Command
public Command(java.lang.String sName,
java.lang.String sControl)
getName
public java.lang.String getName()
- get name
getCommand
public java.lang.String getCommand()
parseCommand
public static java.lang.String parseCommand(java.lang.String s)
- creates the printer command by parsing a description of the command:
1. it replaces the ESC string with the esc character
2. it parses the CRTL+ string
3. it removes empty characters