public class DataStream3270Printer extends DataStream3270
Modifier and Type | Field and Description |
---|---|
static char |
ASCII_FA
Special ASCII code: Field Attribute.
|
static int |
ATTR_BASICMASK
The basic attribute mask when getting the attribute to send it to host.
|
static int |
ATTR_EXTENDEDCOLORMASK
The mask used to find out if a character or field attribute
has extended color properties.
|
static int |
ATTR_FLAG_ALL_FLAGS |
static int |
ATTR_FLAG_BACKCOLOR |
static int |
ATTR_FLAG_CHARSET |
static int |
ATTR_FLAG_FORECOLOR |
static int |
ATTR_FLAG_HIGHLIGHT |
static int |
ATTR_FLAG_OUTLINE |
static int |
ATTR_GECHAR |
static int |
ATTR_HIGHLIGHT_BLINK |
static int |
ATTR_HIGHLIGHT_REVERSE |
static int |
ATTR_HIGHLIGHT_UNDERLINE |
static int |
ATTR_INTENSITY |
static int |
ATTR_MASK_ALL_EQUALIZE |
static int |
ATTR_MASK_ALL_EXTENDED |
static int |
ATTR_MASK_ALL_EXTENDED_BITS
The mask used to find out if a character or field attribute
has extended properties, not including the GE character, the special character and the needs update flag.
|
static int |
ATTR_MASK_BACKCOLOR |
static int |
ATTR_MASK_CHARSET |
static int |
ATTR_MASK_FORECOLOR |
static int |
ATTR_MASK_HIGHLIGHT |
static int |
ATTR_MASK_OUTLINE |
static int |
ATTR_MODIFIED |
static int |
ATTR_NEEDSUPDATE |
static int |
ATTR_NONDISPLAY |
static int |
ATTR_NUMERIC |
static int |
ATTR_PROTECTED |
static int |
ATTR_RESERVED |
static int |
ATTR_SHIFT_BACKCOLOR |
static int |
ATTR_SHIFT_CHARSET |
static int |
ATTR_SHIFT_FORECOLOR |
static int |
ATTR_SHIFT_HIGHLIGHT |
static int |
ATTR_SHIFT_OUTLINE |
static int |
ATTR_SPECIALCHAR |
static int |
ATTR_TRANSGRAPHIC0 |
static int |
ATTR_TRANSGRAPHIC1 |
static HostPrinterSettings |
defaultHostPrinterSettings
The default host printer settings.
|
static int |
STATE_FULL |
static int |
STATE_NUMERIC |
static int |
STATE_PROTECTED |
static int |
STATE_SENDING |
static int |
STATE_SYSTEM |
static int |
STATE_WAITING |
hostSession, ORDER_FC_DUP, ORDER_FC_FM
Constructor and Description |
---|
DataStream3270Printer(HostSession3270Printer hs)
Creates the 3270 data stream.
|
Modifier and Type | Method and Description |
---|---|
protected String |
checkPrinterOperation(int wcc,
String text)
Checks the printer operation type in the WCC for LU3 type printers.
|
protected boolean |
doPrinterCR()
Checks if a printer will handle a CR order.
|
protected boolean |
doPrinterEM(int addr)
Checks if a printer will handle a EM order.
|
protected boolean |
doPrinterFF(int addr)
Checks if a printer will handle a FF order.
|
protected boolean |
doPrinterNL()
Checks if a printer will handle a NL order.
|
HostPrinterSettings |
getHostPrinterSettings()
Gets a copy of the host printer settings for this session.
|
static void |
loadSettings()
Loads the settings from the "server.ini" file.
|
protected void |
markEndOfPrint(int addr)
Marks the last printing address.
|
void |
printPage(Transaction trans)
Prints a page to a transaction.
|
void |
processPrintEOJ()
Processes the inbound print end-of-job.
|
void |
processSCSData(short[] inputBuf,
int inputBufLen)
Processes the inbound SCS data stream.
|
void |
setHostPrinterSettings(HostPrinterSettings newSettings)
Sets new host printer settings for this session.
|
protected int |
sfQueryReplyCharacterSets(short[] buf,
int n)
Responds to the character sets query.
|
protected int |
sfQueryReplyImplicitPartition(short[] buf,
int n)
Responds to the implicit partition query.
|
protected int |
sfQueryReplySummary(short[] buf,
int n)
Query Reply Summary.
|
protected int |
sfQueryReplyUseableArea(short[] buf,
int n)
Query Reply Usable Area
|
protected void |
sfReadPartitionQuery()
Sends the reply for Read Partition Query structured field.
|
protected void |
sfReadPartitionQueryList(int reqtyp,
int pos,
short[] buf,
int lenQCodes)
Sends the reply for Read Partition Query List structured field.
|
protected void |
writeCommand(int startPos,
short[] buf,
int buflen)
Write Command.
|
processData, readModifiedCommand, sfQueryReplyHighlighting, sfQueryReplyNull, sfQueryReplyReplyModes, write, writeDisplay
public static final HostPrinterSettings defaultHostPrinterSettings
public static final int STATE_SYSTEM
public static final int STATE_SENDING
public static final int STATE_WAITING
public static final int STATE_PROTECTED
public static final int STATE_FULL
public static final int STATE_NUMERIC
public static final int ATTR_MODIFIED
public static final int ATTR_RESERVED
public static final int ATTR_NONDISPLAY
public static final int ATTR_INTENSITY
public static final int ATTR_NUMERIC
public static final int ATTR_PROTECTED
public static final int ATTR_TRANSGRAPHIC0
public static final int ATTR_TRANSGRAPHIC1
public static final int ATTR_SHIFT_FORECOLOR
public static final int ATTR_SHIFT_BACKCOLOR
public static final int ATTR_SHIFT_OUTLINE
public static final int ATTR_SHIFT_HIGHLIGHT
public static final int ATTR_SHIFT_CHARSET
public static final int ATTR_MASK_FORECOLOR
public static final int ATTR_MASK_BACKCOLOR
public static final int ATTR_MASK_OUTLINE
public static final int ATTR_MASK_HIGHLIGHT
public static final int ATTR_MASK_CHARSET
public static final int ATTR_MASK_ALL_EXTENDED
public static final int ATTR_MASK_ALL_EQUALIZE
public static final int ATTR_FLAG_FORECOLOR
public static final int ATTR_FLAG_BACKCOLOR
public static final int ATTR_FLAG_OUTLINE
public static final int ATTR_FLAG_HIGHLIGHT
public static final int ATTR_FLAG_CHARSET
public static final int ATTR_FLAG_ALL_FLAGS
public static final int ATTR_SPECIALCHAR
public static final int ATTR_GECHAR
public static final int ATTR_NEEDSUPDATE
public static final int ATTR_MASK_ALL_EXTENDED_BITS
public static final int ATTR_HIGHLIGHT_BLINK
public static final int ATTR_HIGHLIGHT_REVERSE
public static final int ATTR_HIGHLIGHT_UNDERLINE
public static final int ATTR_BASICMASK
public static final int ATTR_EXTENDEDCOLORMASK
public static final char ASCII_FA
public DataStream3270Printer(HostSession3270Printer hs)
public static void loadSettings()
public HostPrinterSettings getHostPrinterSettings()
public void setHostPrinterSettings(HostPrinterSettings newSettings)
protected String checkPrinterOperation(int wcc, String text)
checkPrinterOperation
in class DataStream3270
protected boolean doPrinterCR()
doPrinterCR
in class DataStream3270
protected boolean doPrinterNL()
doPrinterNL
in class DataStream3270
protected boolean doPrinterFF(int addr)
doPrinterFF
in class DataStream3270
protected boolean doPrinterEM(int addr)
doPrinterEM
in class DataStream3270
protected void markEndOfPrint(int addr)
markEndOfPrint
in class DataStream3270
protected void writeCommand(int startPos, short[] buf, int buflen) throws IOException
The Write command writes data into specified locations of the character buffer. Data is stored in successive buffer locations until an order is encountered in the data stream.
During the write operation, the buffer address is advanced one location as each character is stored.
The buffer location where the entry of data starts depends on the starting location specified by the SBA order that follows the WCC. If an SBA does not follow the WCC, the starting location is the buffer address where the cursor is positioned.
writeCommand
in class DataStream3270
IOException
- if an I/O error occurs.protected void sfReadPartitionQuery() throws IOException
IOException
- if an I/O error occurs.protected void sfReadPartitionQueryList(int reqtyp, int pos, short[] buf, int lenQCodes) throws IOException
IOException
- if an I/O error occurs.protected int sfQueryReplySummary(short[] buf, int n)
Informs host of supported QCODES.
sfQueryReplySummary
in class DataStream3270
protected int sfQueryReplyUseableArea(short[] buf, int n)
Informs host of base information.
sfQueryReplyUseableArea
in class DataStream3270
protected int sfQueryReplyCharacterSets(short[] buf, int n) throws IOException
sfQueryReplyCharacterSets
in class DataStream3270
IOException
- if an I/O error occurs.protected int sfQueryReplyImplicitPartition(short[] buf, int n)
sfQueryReplyImplicitPartition
in class DataStream3270
public void processSCSData(short[] inputBuf, int inputBufLen) throws IOException
IOException
- if an I/O error occurs.public void processPrintEOJ() throws IOException
IOException
- if an I/O error occurs.public void printPage(Transaction trans)
Phantom® and NetPhantom® are registered trademarks of Mindus SARL.
© © Mindus SARL, 2024. All rights reserved.