All Packages Class Hierarchy This Package Previous Next Index
Class com.ibm.as400.access.SCS5224Writer
java.lang.Object
|
+----java.io.Writer
|
+----java.io.OutputStreamWriter
|
+----com.ibm.as400.access.SCS5256Writer
|
+----com.ibm.as400.access.SCS5224Writer
- public class SCS5224Writer
- extends SCS5256Writer
The SCS5224Writer class writes an SCS 5224 data stream to an output stream,
translating characters into bytes of the specified CCSID.
SCS5224Writer extends the SCS5256Writer and adds support for
setting the characters per inch (CPI) and lines per inch (LPI).
- See Also:
- SCS5256Writer
-
SCS5224Writer(OutputStream)
- Constructs a SCS5224Writer.
-
SCS5224Writer(OutputStream, int)
- Constructs a SCS5224Writer.
-
SCS5224Writer(OutputStream, String)
- Constructs a SCS5224Writer.
-
setCPI(int)
- Sets characters per inch.
-
setLPI(int)
- Sets lines per inch.
SCS5224Writer
public SCS5224Writer(OutputStream out)
- Constructs a SCS5224Writer. The default encoding will be used.
- Parameters:
- out - An OutputStream.
SCS5224Writer
public SCS5224Writer(OutputStream out,
int ccsid) throws UnsupportedEncodingException
- Constructs a SCS5224Writer.
- Parameters:
- out - An OutputStream.
- ccsid - The name of the target CCSID to be used.
- Throws: UnsupportedEncodingException
- If ccsid is invalid.
SCS5224Writer
public SCS5224Writer(OutputStream out,
String encoding) throws UnsupportedEncodingException
- Constructs a SCS5224Writer.
- Parameters:
- out - An OutputStream.
- encoding - The name of the target encoding to be used.
- Throws: UnsupportedEncodingException
- If encoding is invalid.
setCPI
public void setCPI(int cpi) throws IOException
- Sets characters per inch. All following text will be
in the set pitch.
- Parameters:
- cpi - The characters per inch. Valid values are 10 and 15.
- Throws: IOException
- If an error occurs while communicating
with the AS/400.
setLPI
public void setLPI(int lpi) throws IOException
- Sets lines per inch. All following lines will be in the set
lines per inch.
- Parameters:
- lpi - The lines per inch. Valid values are 4, 6, 8, 9, and
12.
- Throws: IOException
- If an error occurs while communicating
with the AS/400.
All Packages Class Hierarchy This Package Previous Next Index