public class SCS5219Writer extends SCS5224Writer
SCS5224Writer
Modifier and Type | Field and Description |
---|---|
static int |
QUALITY_DRAFT
Constant value for draft print quality.
|
static int |
QUALITY_NEAR_LETTER
Constant value for near letter print quality.
|
Constructor and Description |
---|
SCS5219Writer(java.io.OutputStream out)
Deprecated.
Replaced by SCS5219Writer(OutputStream, int, AS400).
Any SCS5219Writer object that is created without
specifying an AS400 system object on its constructor may
not behave as expected in certain environments.
|
SCS5219Writer(java.io.OutputStream out,
int ccsid)
Deprecated.
Replaced by SCS5219Writer(OutputStream, int, AS400).
Any SCS5219Writer object that is created without
specifying an AS400 system object on its constructor may
not behave as expected in certain environments.
|
SCS5219Writer(java.io.OutputStream out,
int ccsid,
AS400 system)
Constructs a SCS5219Writer.
|
SCS5219Writer(java.io.OutputStream out,
java.lang.String encoding)
Deprecated.
Replaced by SCS5219Writer(OutputStream, int, AS400).
Any SCS5219Writer object that is created without
specifying an AS400 system object on its constructor may
not behave as expected in certain environments.
|
Modifier and Type | Method and Description |
---|---|
void |
endPage()
Ends current page.
|
void |
setCodePage(int codepage,
int charset)
Sends Set GCGID through GCID (SCG) command to set the code page
and character set.
|
void |
setCPI(int cpi)
Sets characters per inch.
|
void |
setDestinationDrawer(int drawer)
Sets destination drawer number.
|
void |
setEnvelopeSize(double width,
double length)
Sets envelope size.
|
void |
setLeftMargin(double leftMargin)
Sets the left margin.
|
void |
setPaperSize(double width,
double length)
Sets paper size.
|
void |
setQuality(int quality)
Sets quality printing.
|
void |
setSourceDrawer(int drawer)
Sets source drawer number.
|
void |
setUnderline(boolean ul)
Sets underline on or off.
|
setLPI
absoluteHorizontalPosition, absoluteVerticalPosition, carriageReturn, close, flush, getEncoding, lineFeed, newLine, relativeHorizontalPosition, relativeVerticalPosition, setHorizontalFormat, setVerticalFormat, write, write, write, write
public static final int QUALITY_DRAFT
public static final int QUALITY_NEAR_LETTER
public SCS5219Writer(java.io.OutputStream out)
out
- An OutputStream.public SCS5219Writer(java.io.OutputStream out, int ccsid) throws java.io.UnsupportedEncodingException
out
- An OutputStream.ccsid
- The name of the target CCSID to be used.java.io.UnsupportedEncodingException
- If ccsid is invalid.public SCS5219Writer(java.io.OutputStream out, int ccsid, AS400 system) throws java.io.UnsupportedEncodingException
out
- An OutputStream.ccsid
- The name of the target CCSID to be used.system
- The system.java.io.UnsupportedEncodingException
- If ccsid is invalid.public SCS5219Writer(java.io.OutputStream out, java.lang.String encoding) throws java.io.UnsupportedEncodingException
out
- An OutputStream.encoding
- The name of the target encoding to be used.java.io.UnsupportedEncodingException
- If encoding is invalid.public void endPage() throws java.io.IOException
endPage
in class SCS5256Writer
java.io.IOException
- If an error occurs while communicating
with the system.public void setCodePage(int codepage, int charset) throws java.io.IOException
codepage
- The code page to be set.charset
- The new character set.java.io.IOException
- If an error occurs while communicating
with the system.public void setCPI(int cpi) throws java.io.IOException
setCPI
in class SCS5224Writer
cpi
- The characters per inch. Valid values are 10, 12
and 15.java.io.IOException
- If an error occurs while communicating
with the system.public void setDestinationDrawer(int drawer)
drawer
- The number of the drawer to select. Valid values are 1 to
255.public void setEnvelopeSize(double width, double length)
width
- The envelope width in inches. Valid values are 0.1 to
14.0.length
- The envelope width in inches. Valid values are 0.1 to
14.0.public void setLeftMargin(double leftMargin) throws java.io.IOException
leftMargin
- The margin distance from the left paper edge in
inches. Valid values are 0.0 to 14.0.java.io.IOException
- If an error occurs while communicating
with the system.public void setPaperSize(double width, double length)
width
- The paper width in inches. Valid values are 0.1 to
14.0.length
- The paper length in inches. Valid values are 0.1 to
14.0.public void setQuality(int quality)
quality
- The type of quality printing. Valid values are
QUALITY_DRAFT and QUALITY_NEAR_LETTER.public void setSourceDrawer(int drawer)
drawer
- The number of the drawer to select. Valid values are 1 to
255.public void setUnderline(boolean ul) throws java.io.IOException
ul
- If true, turns underline on; if false, turns underline off.java.io.IOException
- If an error occurs while communicating
with the system.