Package com.iizix.term.ee
Class EEMaster
java.lang.Object
com.iizix.term.ee.EEMaster
Load the EEM file and appropriate EE files.
- Author:
- Christopher Mindus
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
Constructor Summary
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds a new EEScreen to the table.boolean
canEdit()
Checks if this master file can be edited for screen captures, i.e.static void
catchScreenAsEE
(HostSession hostSession, ByteArrayOutputStream bos, String screenName) Catch a screen as EE.static boolean
catchScreenAsEE
(HostSession hostSession, String fileName, String screenName, boolean doAppend) Catch a screen as EE.static boolean
createNewEEMFile
(String newFileName) Create a new, empty EEM file.Gets all the screens.int
getDelay()
Gets the delay defined for the EEM file.static EEFile
Gets or loads an EE file.static EEMaster
getEEMaster
(String fn) Creates a shared instance or uses a previous one, reloading changed files if required, with weak memory references to allow smaller memory footprint.Gets the name of the EEM file.Gets the first screen.int
getFlags()
Gets the flags defined for the EEM file.Gets the initial EE screen.Gets the last screen.EELogic[]
getLogic()
Gets the logic statements for the EEM file.getPreviousNextScreen
(EEScreen current, int dir) Gets the previous or next screen.Gets the EE screen from a name.void
loadCapture
(String fn) Loads a captured EE file into the EEM.void
setDelay
(int newDelay) Sets the delay defined for the EEM file.void
setEEFileNames
(String[] newNames) Sets the EE file names array defined for the EEM file.void
setFileName
(String newName) Sets the name of the EEM file.void
setFlags
(int newFlags) Sets the delay defined for the EEM file.void
setInitialScreen
(int newScreen) Sets the initial screen defined for the EEM file.void
Sets the logic statements for the EEM file.void
write()
Write the content of the instance to a file.
Field Details
K_LEFTTAB
public static final int K_LEFTTAB- See Also:
K_CLEAR
public static final int K_CLEAR- See Also:
K_DELETE
public static final int K_DELETE- See Also:
K_ENTER
public static final int K_ENTER- See Also:
K_EEOF
public static final int K_EEOF- See Also:
K_HELP
public static final int K_HELP- See Also:
K_INSERT
public static final int K_INSERT- See Also:
K_JUMP
public static final int K_JUMP- See Also:
K_LEFT
public static final int K_LEFT- See Also:
K_NEWLINE
public static final int K_NEWLINE- See Also:
K_SPACE
public static final int K_SPACE- See Also:
K_PRINT
public static final int K_PRINT- See Also:
K_RESET
public static final int K_RESET- See Also:
K_RIGHTTAB
public static final int K_RIGHTTAB- See Also:
K_UP
public static final int K_UP- See Also:
K_DOWN
public static final int K_DOWN- See Also:
K_DBCS
public static final int K_DBCS- See Also:
K_CAPSLOCK
public static final int K_CAPSLOCK- See Also:
K_RIGHT
public static final int K_RIGHT- See Also:
K_HOME
public static final int K_HOME- See Also:
K_PF1
public static final int K_PF1- See Also:
K_PF2
public static final int K_PF2- See Also:
K_PF3
public static final int K_PF3- See Also:
K_PF4
public static final int K_PF4- See Also:
K_PF5
public static final int K_PF5- See Also:
K_PF6
public static final int K_PF6- See Also:
K_PF7
public static final int K_PF7- See Also:
K_PF8
public static final int K_PF8- See Also:
K_PF9
public static final int K_PF9- See Also:
K_PF10
public static final int K_PF10- See Also:
K_PF11
public static final int K_PF11- See Also:
K_PF12
public static final int K_PF12- See Also:
K_PF13
public static final int K_PF13- See Also:
K_PF14
public static final int K_PF14- See Also:
K_PF15
public static final int K_PF15- See Also:
K_PF16
public static final int K_PF16- See Also:
K_PF17
public static final int K_PF17- See Also:
K_PF18
public static final int K_PF18- See Also:
K_PF19
public static final int K_PF19- See Also:
K_PF20
public static final int K_PF20- See Also:
K_PF21
public static final int K_PF21- See Also:
K_PF22
public static final int K_PF22- See Also:
K_PF23
public static final int K_PF23- See Also:
K_PF24
public static final int K_PF24- See Also:
K_PLUSKEY
public static final int K_PLUSKEY- See Also:
K_END
public static final int K_END- See Also:
K_SCRLK
public static final int K_SCRLK- See Also:
K_NUMLOCK
public static final int K_NUMLOCK- See Also:
K_PGUP
public static final int K_PGUP- See Also:
K_PGDOWN
public static final int K_PGDOWN- See Also:
K_PA1
public static final int K_PA1- See Also:
K_PA2
public static final int K_PA2- See Also:
K_PA3
public static final int K_PA3- See Also:
K_TEST
public static final int K_TEST- See Also:
K_WORDDELETE
public static final int K_WORDDELETE- See Also:
K_FIELDEXIT
public static final int K_FIELDEXIT- See Also:
K_ERASEINPUT
public static final int K_ERASEINPUT- See Also:
K_SYSTEMREQUEST
public static final int K_SYSTEMREQUEST- See Also:
K_INSERTTOGGLE
public static final int K_INSERTTOGGLE- See Also:
K_CURSORSELECT
public static final int K_CURSORSELECT- See Also:
K_CURSORLEFTFAST
public static final int K_CURSORLEFTFAST- See Also:
K_GETCURSOR
public static final int K_GETCURSOR- See Also:
K_LOCATECURSOR
public static final int K_LOCATECURSOR- See Also:
K_ATTENTION
public static final int K_ATTENTION- See Also:
K_DEVICECANCEL
public static final int K_DEVICECANCEL- See Also:
K_PRINTPS
public static final int K_PRINTPS- See Also:
K_CURSORUPFAST
public static final int K_CURSORUPFAST- See Also:
K_CURSORDOWNFAST
public static final int K_CURSORDOWNFAST- See Also:
K_HEXADECIMAL
public static final int K_HEXADECIMAL- See Also:
K_CMDKEY
public static final int K_CMDKEY- See Also:
K_CURSORRIGHTFAST
public static final int K_CURSORRIGHTFAST- See Also:
K_UNDERSCORE
public static final int K_UNDERSCORE- See Also:
K_RESETREVVIDEO
public static final int K_RESETREVVIDEO- See Also:
K_RED
public static final int K_RED- See Also:
K_PINK
public static final int K_PINK- See Also:
K_GREEN
public static final int K_GREEN- See Also:
K_YELLOW
public static final int K_YELLOW- See Also:
K_BLUE
public static final int K_BLUE- See Also:
K_TURQUOISE
public static final int K_TURQUOISE- See Also:
K_WHITE
public static final int K_WHITE- See Also:
K_RESETHOSTCOLORS
public static final int K_RESETHOSTCOLORS- See Also:
K_GOTOSESS1
public static final int K_GOTOSESS1- See Also:
K_GOTOSESS2
public static final int K_GOTOSESS2- See Also:
K_GOTOSESS3
public static final int K_GOTOSESS3- See Also:
K_GOTOSESS4
public static final int K_GOTOSESS4- See Also:
K_GOTOSESS5
public static final int K_GOTOSESS5- See Also:
K_PCPRINT
public static final int K_PCPRINT- See Also:
K_FORWARWORDTAB
public static final int K_FORWARWORDTAB- See Also:
K_BACKWARDWORDTAB
public static final int K_BACKWARDWORDTAB- See Also:
K_FIELDMINUS
public static final int K_FIELDMINUS- See Also:
K_FIELDPLUS
public static final int K_FIELDPLUS- See Also:
K_RECORDBACKSPCE
public static final int K_RECORDBACKSPCE- See Also:
K_OVERRUNQUEUE
public static final int K_OVERRUNQUEUE- See Also:
K_PMALTCURSOR
public static final int K_PMALTCURSOR- See Also:
K_BACKSPACE
public static final int K_BACKSPACE- See Also:
K_REVERSEVIDEO
public static final int K_REVERSEVIDEO- See Also:
K_DESTRUCTBACKSPACE
public static final int K_DESTRUCTBACKSPACE- See Also:
FA_PROT
public static final int FA_PROT- See Also:
FA_3270NUM
public static final int FA_3270NUM- See Also:
FA_3270ISPDMASK
public static final int FA_3270ISPDMASK- See Also:
FA_3270ISPDHI
public static final int FA_3270ISPDHI- See Also:
FA_3270ISPDNODISP
public static final int FA_3270ISPDNODISP- See Also:
FA_5250NODISP
public static final int FA_5250NODISP- See Also:
FA_5250HI
public static final int FA_5250HI- See Also:
FA_5250FTMASK
public static final int FA_5250FTMASK- See Also:
FA_5250FTALPHA
public static final int FA_5250FTALPHA- See Also:
FA_5250FTNUMSH
public static final int FA_5250FTNUMSH- See Also:
FA_5250FTNUM
public static final int FA_5250FTNUM- See Also:
FA_5250FTDIGITS
public static final int FA_5250FTDIGITS- See Also:
FA_5250FTSIGNNUM
public static final int FA_5250FTSIGNNUM- See Also:
IBIT2
public static final int IBIT2- See Also:
IBIT1
public static final int IBIT1- See Also:
IBIT0
public static final int IBIT0- See Also:
Constructor Details
EEMaster
Loads an EEM file for the recording editor.- Throws:
IOException
EEMaster
public EEMaster()Constructor used when catching an EE file.
Method Details
getEEMaster
Creates a shared instance or uses a previous one, reloading changed files if required, with weak memory references to allow smaller memory footprint.- Throws:
IOException
- for file failures.
getEEFile
Gets or loads an EE file.- Throws:
IOException
- for file failures.
catchScreenAsEE
public static void catchScreenAsEE(HostSession hostSession, ByteArrayOutputStream bos, String screenName) throws IOException Catch a screen as EE.The screen name must be 1 through 20 characters long using the default ASCII (OEM) character set, otherwise an IOException is thrown.
- Throws:
IOException
- for file errors.
catchScreenAsEE
public static boolean catchScreenAsEE(HostSession hostSession, String fileName, String screenName, boolean doAppend) throws IOException Catch a screen as EE.The screen name must be 1 through 20 characters long using the default ASCII (OEM) character set, otherwise an IOException is thrown.
The flag "doAppend" indicates if the screen name should be appended to the file name specified. If the file exists prior to calling this method with "doAppend=false", the file is overwritten.
- Returns:
- false if the screen name already exists, true for success.
- Throws:
IOException
- for file errors.
getFileName
Gets the name of the EEM file.setFileName
Sets the name of the EEM file.setEEFileNames
Sets the EE file names array defined for the EEM file.- Throws:
IOException
setInitialScreen
public void setInitialScreen(int newScreen) Sets the initial screen defined for the EEM file.getFlags
public int getFlags()Gets the flags defined for the EEM file.setFlags
public void setFlags(int newFlags) Sets the delay defined for the EEM file.getDelay
public int getDelay()Gets the delay defined for the EEM file.setDelay
public void setDelay(int newDelay) Sets the delay defined for the EEM file.setLogic
Sets the logic statements for the EEM file.createNewEEMFile
Create a new, empty EEM file.- Throws:
IOException
write
Write the content of the instance to a file.- Throws:
IOException
addScreen
Adds a new EEScreen to the table.getInitialScreen
Gets the initial EE screen.- Returns:
- The initial screen, or null for none.
getScreen
Gets the EE screen from a name.- Returns:
- null if not found.
getAllScreens
Gets all the screens.getFirstScreen
Gets the first screen.- Returns:
- The first screen, or null if none are present.
getLastScreen
Gets the last screen.- Returns:
- The last screen, or null if none are present.
getPreviousNextScreen
Gets the previous or next screen.- Parameters:
dir
- direction to move, set to -1 for previous or 1 for next.- Returns:
- null if not found.
getLogic
Gets the logic statements for the EEM file.- Returns:
- null if no logic statements are found.
loadCapture
Loads a captured EE file into the EEM.- Parameters:
fn
- The file name.- Throws:
IOException
- For file errors.
canEdit
public boolean canEdit()Checks if this master file can be edited for screen captures, i.e. just one file with one screen.