Closeable, Flushable, Appendable, AutoCloseablepublic class SCS5553Writer extends SCS5224Writer
SCS5224Writer| Modifier and Type | Field | Description |
|---|---|---|
static int |
CHARACTER_NORMAL |
Constant for normal character rotation.
|
static int |
CHARACTER_ROTATED |
Constant for 270-degree character rotation.
|
static int |
SCALE_DOUBLE_HORIZONTAL |
Constant for double horizontal font scaling.
|
static int |
SCALE_REGULAR |
Constant for regular font scaling.
|
static int |
SETCCP_BLANK_CODE |
Constant for SO/SI are printed as A/N/K blank code (default)
|
static int |
SETCCP_NO_PRINT |
Constant for all control characters take no printing positions
|
static int |
SETCCP_SI_BLANK |
Constant for SO takes no position, SI takes 2 A/N/K blanks
|
| Constructor | Description |
|---|---|
SCS5553Writer(OutputStream out) |
Deprecated.
Replaced by SCS5553Writer(OutputStream, int, AS400).
|
SCS5553Writer(OutputStream out,
int ccsid) |
Deprecated.
Replaced by SCS5553Writer(OutputStream, int, AS400).
|
SCS5553Writer(OutputStream out,
int ccsid,
AS400 system) |
Constructs a SCS5553Writer.
|
SCS5553Writer(OutputStream out,
String encoding) |
Deprecated.
Replaced by SCS5553Writer(OutputStream, int, AS400).
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
printHorizontalGridLine(double start,
double stop) |
Prints a horizontal grid line at the current line.
|
void |
setCharacterRotation(int rotation) |
Sets character rotation.
|
void |
setControlCharPresentation(int set) |
Defines the action taken by the SI/SO characters.
|
void |
setCPI(int cpi) |
Sets characters per inch.
|
void |
setFontScaling(int scale) |
Sets font scaling.
|
void |
startVerticalGridLines(double[] positions) |
Starts printing vertical grid lines at the specified positions.
|
void |
stopVerticalGridLines() |
Stops printing vertical grid lines.
|
setLPIabsoluteHorizontalPosition, absoluteVerticalPosition, carriageReturn, close, endPage, flush, getEncoding, lineFeed, newLine, relativeHorizontalPosition, relativeVerticalPosition, setHorizontalFormat, setVerticalFormat, write, write, write, writeappend, appendappend, nullWriter, writepublic static final int CHARACTER_NORMAL
public static final int CHARACTER_ROTATED
public static final int SCALE_DOUBLE_HORIZONTAL
public static final int SCALE_REGULAR
public static final int SETCCP_NO_PRINT
public static final int SETCCP_BLANK_CODE
public static final int SETCCP_SI_BLANK
public SCS5553Writer(OutputStream out)
out - An OutputStream.public SCS5553Writer(OutputStream out, int ccsid) throws UnsupportedEncodingException
out - An OutputStream.ccsid - The name of the target CCSID to be used.UnsupportedEncodingException - If ccsid is invalid.public SCS5553Writer(OutputStream out, int ccsid, AS400 system) throws UnsupportedEncodingException
out - An OutputStream.ccsid - The name of the target CCSID to be used.system - The system.UnsupportedEncodingException - If ccsid is invalid.public SCS5553Writer(OutputStream out, String encoding) throws UnsupportedEncodingException
out - An OutputStream.encoding - The name of the target encoding to be used.UnsupportedEncodingException - If encoding is invalid.public void setCPI(int cpi)
throws IOException
setCPI in class SCS5224Writercpi - The characters per inch. Valid values are 10, 12, 13.3, 15, 18 and 20 but
we won't implement 13.3 for nowIOException - If an error occurs while communicating
with the system.public void printHorizontalGridLine(double start,
double stop)
throws IOException
start - The absolute position in inches, from the left paper edge,
to start the grid line.stop - The absolute position in inches, from the left paper edge,
to stop the grid line.IOException - If an error occurs while communicating
with the system.public void setCharacterRotation(int rotation)
throws IOException
rotation - The value of character rotation. Valid values are
CHARACTER_NORMAL and CHARACTER_ROTATED.IOException - If an error occurs while communicating
with the system.public void setControlCharPresentation(int set)
throws IOException
set - The parameter that defines the presentation option. Valid
values are SETCCP_NO_PRINT, SETCCP_BLANK_CODE, and SETCCP_SI_BLANK.IOException - If an error occurs while communicating
with the system.public void setFontScaling(int scale)
throws IOException
scale - The value of font scaling. Valid values are SCALE_REGULAR and
SCALE_DOUBLE_HORIZONTAL.IOException - If an error occurs while communicating
with the system.public void startVerticalGridLines(double[] positions)
throws IOException
positions - An array of absolute positions in inches, from the
left paper edge, to start a vertical grid line.IOException - If an error occurs while communicating
with the system.public void stopVerticalGridLines()
throws IOException
IOException - If an error occurs while communicating
with the system.Copyright © 2024. All rights reserved.