public class HostSession3270Printer extends HostSession3270
address, dataStream, display, doTN3270E, ebcdicConverter, graphicalCodepage, listener, peerData, port, telnet, telnetHostClassSTATE_CommunicationCheck, STATE_CommunicationsError, STATE_Error, STATE_FieldFullError, STATE_InsertMode, STATE_KeyboardShift, STATE_Lock, STATE_LULUOwned, STATE_MachineCheck, STATE_MessageWaiting, STATE_MinusError, STATE_MinusErrorXfStickman, STATE_NonNumericError, STATE_OnFieldOrProtected, STATE_OnlineNotOwned, STATE_ProgramCheck, STATE_ReceiveWait, STATE_Secure, STATE_Sending, STATE_SSCPLUOwned, STATE_SystemAvailable| Modifier and Type | Method and Description |
|---|---|
protected void |
createDataStream()
Create the data stream.
|
boolean |
doesHostNeedFieldExit(int x,
int y,
int offset,
int length,
String string)
For 5250 only: checks if a field has the attributes that requires this particular
string to enter the data followed by a "Field Exit" or "Field Minus" key.
|
Point |
getCursor()
Gets the current host cursor position.
|
HostPrinterSettings |
getHostPrinterSettings()
Gets a copy of the host printer settings for this session.
|
int |
getSessionID()
Gets the session ID (or index) of this session, always -1
for printer sessions.
|
void |
initiate2(HostSessionListener2 listener,
String address,
int port)
Initiates an instance of the host session, but does not
connect to the host.
|
void |
initiateLocalCopy()
Initiates a local copy of the current PS to the printer.
|
boolean |
isFieldFormatted()
Checks if this host screen is field formatted.
|
boolean |
isPrinter()
Checks if this is a printer or not (always true).
|
void |
printPage(Transaction trans)
Prints a page to a transaction.
|
void |
processInboundSCSDataStream(short[] inputBuf,
int inputBufLen)
Processes the inbound SCS data stream.
|
void |
processPrintEOJ()
Processes an end of job for the current printer session.
|
boolean |
sendCharacterString(String keys)
Sends character keystrokes to host.
|
boolean |
sendKey(int key)
Sends character keystrokes to host.
|
boolean |
setCursor(int x,
int y)
Sets the host cursor position.
|
void |
setHostPrinterSettings(HostPrinterSettings newSettings)
Sets new host printer settings for this session.
|
boolean |
setHostString(int x,
int y,
int offset,
int length,
String string)
Sets a string to a host field.
|
boolean |
setHostStringAsKeys(int x,
int y,
int offset,
int length,
String string)
Sets a string to a host field just as if the user typed the characters.
|
void |
setTerminalType(String terminal)
Sets the terminal type.
|
connect, disconnect, displayHiddenText, doesFieldHaveExtendedAttributes, doNumericFieldOverride, getAllowedCharacters, getAssociated3270Printer, getCharactersAndAttributes, getCharactersAndAttributes, getClientConnectionData, getClientHostFieldFlags, getDeviceName, getHomeAddress, getHostAddress, getHostPort, getHostSessionListener, getLastError, getNewCharAttribute, getScreenLength, getScreenSize, getSessionState, hostAcceptedDataStream, initiate, initiate2, is3270, isAutoReconnectSessionEnabled, isHiddenTextDisplayed, isProcessingDataStream, onSessionFailure, processInboundDataStream, refreshHostFields, sessionDisconnected, setHostField, setInsertMode, setLastErrorpublic void initiate2(HostSessionListener2 listener, String address, int port) throws IOException
IOException - if an I/O error occurs.protected void createDataStream()
createDataStream in class HostSession3270public void initiateLocalCopy()
initiateLocalCopy in class HostSession3270public int getSessionID()
getSessionID in interface TelnetInterfacegetSessionID in class HostSession3270public void setTerminalType(String terminal) throws IOException
setTerminalType in class HostSession3270IOException - if an I/O error occurs.public boolean sendCharacterString(String keys)
sendCharacterString in interface HostSessionPeersendCharacterString in class HostSession3270public boolean sendKey(int key)
sendKey in interface HostSessionPeersendKey in class HostSession3270HostSendKeyspublic boolean setHostString(int x,
int y,
int offset,
int length,
String string)
setHostString in interface HostSessionPeersetHostString in class HostSession3270public boolean setHostStringAsKeys(int x,
int y,
int offset,
int length,
String string)
setHostStringAsKeys in interface HostSessionPeersetHostStringAsKeys in class HostSession3270public boolean doesHostNeedFieldExit(int x,
int y,
int offset,
int length,
String string)
doesHostNeedFieldExit in interface HostSessionPeerdoesHostNeedFieldExit in class HostSession3270public boolean setCursor(int x,
int y)
setCursor in interface HostSessionPeersetCursor in class HostSession3270public Point getCursor()
getCursor in interface HostSessionPeergetCursor in class HostSession3270public boolean isPrinter()
isPrinter in interface HostSessionPeerisPrinter in class HostSession3270public void printPage(Transaction trans)
public void processInboundSCSDataStream(short[] inputBuf,
int inputBufLen)
throws IOException
IOExceptionpublic void processPrintEOJ()
throws IOException
IOException - if an I/O error occurs.public HostPrinterSettings getHostPrinterSettings()
public void setHostPrinterSettings(HostPrinterSettings newSettings)
public boolean isFieldFormatted()
isFieldFormatted in interface HostSessionPeerisFieldFormatted in class HostSession3270Phantom® and NetPhantom® are registered trademarks of Mindus SARL.
© © Mindus SARL, 2024. All rights reserved.