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 SummaryFieldsModifier and TypeFieldDescription- 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- static final int
- Constructor SummaryConstructors
- Method SummaryModifier and TypeMethodDescription- voidAdds 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 EEFileGets 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.- voidSets the logic statements for the EEM file.- void- write()Write the content of the instance to a file.
- Field Details- K_LEFTTABpublic static final int K_LEFTTAB- See Also:
 
- K_CLEARpublic static final int K_CLEAR- See Also:
 
- K_DELETEpublic static final int K_DELETE- See Also:
 
- K_ENTERpublic static final int K_ENTER- See Also:
 
- K_EEOFpublic static final int K_EEOF- See Also:
 
- K_HELPpublic static final int K_HELP- See Also:
 
- K_INSERTpublic static final int K_INSERT- See Also:
 
- K_JUMPpublic static final int K_JUMP- See Also:
 
- K_LEFTpublic static final int K_LEFT- See Also:
 
- K_NEWLINEpublic static final int K_NEWLINE- See Also:
 
- K_SPACEpublic static final int K_SPACE- See Also:
 
- K_PRINTpublic static final int K_PRINT- See Also:
 
- K_RESETpublic static final int K_RESET- See Also:
 
- K_RIGHTTABpublic static final int K_RIGHTTAB- See Also:
 
- K_UPpublic static final int K_UP- See Also:
 
- K_DOWNpublic static final int K_DOWN- See Also:
 
- K_DBCSpublic static final int K_DBCS- See Also:
 
- K_CAPSLOCKpublic static final int K_CAPSLOCK- See Also:
 
- K_RIGHTpublic static final int K_RIGHT- See Also:
 
- K_HOMEpublic static final int K_HOME- See Also:
 
- K_PF1public static final int K_PF1- See Also:
 
- K_PF2public static final int K_PF2- See Also:
 
- K_PF3public static final int K_PF3- See Also:
 
- K_PF4public static final int K_PF4- See Also:
 
- K_PF5public static final int K_PF5- See Also:
 
- K_PF6public static final int K_PF6- See Also:
 
- K_PF7public static final int K_PF7- See Also:
 
- K_PF8public static final int K_PF8- See Also:
 
- K_PF9public static final int K_PF9- See Also:
 
- K_PF10public static final int K_PF10- See Also:
 
- K_PF11public static final int K_PF11- See Also:
 
- K_PF12public static final int K_PF12- See Also:
 
- K_PF13public static final int K_PF13- See Also:
 
- K_PF14public static final int K_PF14- See Also:
 
- K_PF15public static final int K_PF15- See Also:
 
- K_PF16public static final int K_PF16- See Also:
 
- K_PF17public static final int K_PF17- See Also:
 
- K_PF18public static final int K_PF18- See Also:
 
- K_PF19public static final int K_PF19- See Also:
 
- K_PF20public static final int K_PF20- See Also:
 
- K_PF21public static final int K_PF21- See Also:
 
- K_PF22public static final int K_PF22- See Also:
 
- K_PF23public static final int K_PF23- See Also:
 
- K_PF24public static final int K_PF24- See Also:
 
- K_PLUSKEYpublic static final int K_PLUSKEY- See Also:
 
- K_ENDpublic static final int K_END- See Also:
 
- K_SCRLKpublic static final int K_SCRLK- See Also:
 
- K_NUMLOCKpublic static final int K_NUMLOCK- See Also:
 
- K_PGUPpublic static final int K_PGUP- See Also:
 
- K_PGDOWNpublic static final int K_PGDOWN- See Also:
 
- K_PA1public static final int K_PA1- See Also:
 
- K_PA2public static final int K_PA2- See Also:
 
- K_PA3public static final int K_PA3- See Also:
 
- K_TESTpublic static final int K_TEST- See Also:
 
- K_WORDDELETEpublic static final int K_WORDDELETE- See Also:
 
- K_FIELDEXITpublic static final int K_FIELDEXIT- See Also:
 
- K_ERASEINPUTpublic static final int K_ERASEINPUT- See Also:
 
- K_SYSTEMREQUESTpublic static final int K_SYSTEMREQUEST- See Also:
 
- K_INSERTTOGGLEpublic static final int K_INSERTTOGGLE- See Also:
 
- K_CURSORSELECTpublic static final int K_CURSORSELECT- See Also:
 
- K_CURSORLEFTFASTpublic static final int K_CURSORLEFTFAST- See Also:
 
- K_GETCURSORpublic static final int K_GETCURSOR- See Also:
 
- K_LOCATECURSORpublic static final int K_LOCATECURSOR- See Also:
 
- K_ATTENTIONpublic static final int K_ATTENTION- See Also:
 
- K_DEVICECANCELpublic static final int K_DEVICECANCEL- See Also:
 
- K_PRINTPSpublic static final int K_PRINTPS- See Also:
 
- K_CURSORUPFASTpublic static final int K_CURSORUPFAST- See Also:
 
- K_CURSORDOWNFASTpublic static final int K_CURSORDOWNFAST- See Also:
 
- K_HEXADECIMALpublic static final int K_HEXADECIMAL- See Also:
 
- K_CMDKEYpublic static final int K_CMDKEY- See Also:
 
- K_CURSORRIGHTFASTpublic static final int K_CURSORRIGHTFAST- See Also:
 
- K_UNDERSCOREpublic static final int K_UNDERSCORE- See Also:
 
- K_RESETREVVIDEOpublic static final int K_RESETREVVIDEO- See Also:
 
- K_REDpublic static final int K_RED- See Also:
 
- K_PINKpublic static final int K_PINK- See Also:
 
- K_GREENpublic static final int K_GREEN- See Also:
 
- K_YELLOWpublic static final int K_YELLOW- See Also:
 
- K_BLUEpublic static final int K_BLUE- See Also:
 
- K_TURQUOISEpublic static final int K_TURQUOISE- See Also:
 
- K_WHITEpublic static final int K_WHITE- See Also:
 
- K_RESETHOSTCOLORSpublic static final int K_RESETHOSTCOLORS- See Also:
 
- K_GOTOSESS1public static final int K_GOTOSESS1- See Also:
 
- K_GOTOSESS2public static final int K_GOTOSESS2- See Also:
 
- K_GOTOSESS3public static final int K_GOTOSESS3- See Also:
 
- K_GOTOSESS4public static final int K_GOTOSESS4- See Also:
 
- K_GOTOSESS5public static final int K_GOTOSESS5- See Also:
 
- K_PCPRINTpublic static final int K_PCPRINT- See Also:
 
- K_FORWARWORDTABpublic static final int K_FORWARWORDTAB- See Also:
 
- K_BACKWARDWORDTABpublic static final int K_BACKWARDWORDTAB- See Also:
 
- K_FIELDMINUSpublic static final int K_FIELDMINUS- See Also:
 
- K_FIELDPLUSpublic static final int K_FIELDPLUS- See Also:
 
- K_RECORDBACKSPCEpublic static final int K_RECORDBACKSPCE- See Also:
 
- K_OVERRUNQUEUEpublic static final int K_OVERRUNQUEUE- See Also:
 
- K_PMALTCURSORpublic static final int K_PMALTCURSOR- See Also:
 
- K_BACKSPACEpublic static final int K_BACKSPACE- See Also:
 
- K_REVERSEVIDEOpublic static final int K_REVERSEVIDEO- See Also:
 
- K_DESTRUCTBACKSPACEpublic static final int K_DESTRUCTBACKSPACE- See Also:
 
- FA_PROTpublic static final int FA_PROT- See Also:
 
- FA_3270NUMpublic static final int FA_3270NUM- See Also:
 
- FA_3270ISPDMASKpublic static final int FA_3270ISPDMASK- See Also:
 
- FA_3270ISPDHIpublic static final int FA_3270ISPDHI- See Also:
 
- FA_3270ISPDNODISPpublic static final int FA_3270ISPDNODISP- See Also:
 
- FA_5250NODISPpublic static final int FA_5250NODISP- See Also:
 
- FA_5250HIpublic static final int FA_5250HI- See Also:
 
- FA_5250FTMASKpublic static final int FA_5250FTMASK- See Also:
 
- FA_5250FTALPHApublic static final int FA_5250FTALPHA- See Also:
 
- FA_5250FTNUMSHpublic static final int FA_5250FTNUMSH- See Also:
 
- FA_5250FTNUMpublic static final int FA_5250FTNUM- See Also:
 
- FA_5250FTDIGITSpublic static final int FA_5250FTDIGITS- See Also:
 
- FA_5250FTSIGNNUMpublic static final int FA_5250FTSIGNNUM- See Also:
 
- IBIT2public static final int IBIT2- See Also:
 
- IBIT1public static final int IBIT1- See Also:
 
- IBIT0public static final int IBIT0- See Also:
 
 
- Constructor Details- EEMasterLoads an EEM file for the recording editor.- Throws:
- IOException
 
- EEMasterpublic EEMaster()Constructor used when catching an EE file.
 
- Method Details- getEEMasterCreates 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.
 
- getEEFileGets or loads an EE file.- Throws:
- IOException- for file failures.
 
- catchScreenAsEEpublic 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.
 
- catchScreenAsEEpublic 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.
 
- getFileNameGets the name of the EEM file.
- setFileNameSets the name of the EEM file.
- setEEFileNamesSets the EE file names array defined for the EEM file.- Throws:
- IOException
 
- setInitialScreenpublic void setInitialScreen- (int newScreen) Sets the initial screen defined for the EEM file.
- getFlagspublic int getFlags()Gets the flags defined for the EEM file.
- setFlagspublic void setFlags- (int newFlags) Sets the delay defined for the EEM file.
- getDelaypublic int getDelay()Gets the delay defined for the EEM file.
- setDelaypublic void setDelay- (int newDelay) Sets the delay defined for the EEM file.
- setLogicSets the logic statements for the EEM file.
- createNewEEMFileCreate a new, empty EEM file.- Throws:
- IOException
 
- writeWrite the content of the instance to a file.- Throws:
- IOException
 
- addScreenAdds a new EEScreen to the table.
- getInitialScreenGets the initial EE screen.- Returns:
- The initial screen, or null for none.
 
- getScreenGets the EE screen from a name.- Returns:
- null if not found.
 
- getAllScreensGets all the screens.
- getFirstScreenGets the first screen.- Returns:
- The first screen, or null if none are present.
 
- getLastScreenGets the last screen.- Returns:
- The last screen, or null if none are present.
 
- getPreviousNextScreenGets the previous or next screen.- Parameters:
- dir- direction to move, set to -1 for previous or 1 for next.
- Returns:
- null if not found.
 
- getLogicGets the logic statements for the EEM file.- Returns:
- null if no logic statements are found.
 
- loadCaptureLoads a captured EE file into the EEM.- Parameters:
- fn- The file name.
- Throws:
- IOException- For file errors.
 
- canEditpublic boolean canEdit()Checks if this master file can be edited for screen captures, i.e. just one file with one screen.