Closeable
, Flushable
, Appendable
, AutoCloseable
SCS5219Writer
, SCS5553Writer
public class SCS5224Writer extends SCS5256Writer
SCS5256Writer
Constructor | Description |
---|---|
SCS5224Writer(OutputStream out) |
Deprecated.
Replaced by SCS5224Writer(OutputStream, int, AS400).
|
SCS5224Writer(OutputStream out,
int ccsid) |
Deprecated.
Replaced by SCS5224Writer(OutputStream, int, AS400).
|
SCS5224Writer(OutputStream out,
int ccsid,
AS400 system) |
Constructs a SCS5224Writer.
|
SCS5224Writer(OutputStream out,
String encoding) |
Deprecated.
Replaced by SCS5224Writer(OutputStream, int, AS400).
|
Modifier and Type | Method | Description |
---|---|---|
void |
setCPI(int cpi) |
Sets characters per inch.
|
void |
setLPI(int lpi) |
Sets lines per inch.
|
absoluteHorizontalPosition, absoluteVerticalPosition, carriageReturn, close, endPage, flush, getEncoding, lineFeed, newLine, relativeHorizontalPosition, relativeVerticalPosition, setHorizontalFormat, setVerticalFormat, write, write, write, write
append, append
append, nullWriter, write
public SCS5224Writer(OutputStream out)
out
- An OutputStream.public SCS5224Writer(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 SCS5224Writer(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 SCS5224Writer(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
cpi
- The characters per inch. Valid values are 10 and 15.IOException
- If an error occurs while communicating
with the system.public void setLPI(int lpi) throws IOException
lpi
- The lines per inch. Valid values are 4, 6, 8, 9, and
12.IOException
- If an error occurs while communicating
with the system.Copyright © 2024. All rights reserved.