public class HostSession3270Printer extends HostSession3270
address, dataStream, display, doTN3270E, ebcdicConverter, graphicalCodepage, listener, peerData, port, telnet, telnetHostClass
STATE_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, setLastError
public void initiate2(HostSessionListener2 listener, String address, int port) throws IOException
IOException
- if an I/O error occurs.protected void createDataStream()
createDataStream
in class HostSession3270
public void initiateLocalCopy()
initiateLocalCopy
in class HostSession3270
public int getSessionID()
getSessionID
in interface TelnetInterface
getSessionID
in class HostSession3270
public void setTerminalType(String terminal) throws IOException
setTerminalType
in class HostSession3270
IOException
- if an I/O error occurs.public boolean sendCharacterString(String keys)
sendCharacterString
in interface HostSessionPeer
sendCharacterString
in class HostSession3270
public boolean sendKey(int key)
sendKey
in interface HostSessionPeer
sendKey
in class HostSession3270
HostSendKeys
public boolean setHostString(int x, int y, int offset, int length, String string)
setHostString
in interface HostSessionPeer
setHostString
in class HostSession3270
public boolean setHostStringAsKeys(int x, int y, int offset, int length, String string)
setHostStringAsKeys
in interface HostSessionPeer
setHostStringAsKeys
in class HostSession3270
public boolean doesHostNeedFieldExit(int x, int y, int offset, int length, String string)
doesHostNeedFieldExit
in interface HostSessionPeer
doesHostNeedFieldExit
in class HostSession3270
public boolean setCursor(int x, int y)
setCursor
in interface HostSessionPeer
setCursor
in class HostSession3270
public Point getCursor()
getCursor
in interface HostSessionPeer
getCursor
in class HostSession3270
public boolean isPrinter()
isPrinter
in interface HostSessionPeer
isPrinter
in class HostSession3270
public void printPage(Transaction trans)
public void processInboundSCSDataStream(short[] inputBuf, int inputBufLen) throws IOException
IOException
public 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 HostSessionPeer
isFieldFormatted
in class HostSession3270
Phantom® and NetPhantom® are registered trademarks of Mindus SARL.
© © Mindus SARL, 2024. All rights reserved.