public class SCS3812Writer extends SCS5219Writer
SCS5219Writer| Modifier and Type | Field and Description | 
|---|---|
| static int | DUPLEX_DUPLEXConstant value for duplex printing. | 
| static int | DUPLEX_SIMPLEXConstant value for simplex printing. | 
| static int | DUPLEX_TUMBLEConstant value for tumble duplex printing. | 
| static int | FONT_COURIER_10Constant value for a Courier, 10 pitch font. | 
| static int | FONT_COURIER_12Constant value for a Courier, 12 pitch font. | 
| static int | FONT_COURIER_15Constant value for a Courier, 15 pitch font. | 
| static int | FONT_COURIER_17Constant value for a Courier, 17 pitch font. | 
| static int | FONT_COURIER_5Constant value for a Courier, 5 pitch font. | 
| static int | FONT_COURIER_BOLD_10Constant value for a Courier, bold, 10 pitch font. | 
| static int | FONT_COURIER_BOLD_17Constant value for a Courier, bold, 17 pitch font. | 
| static int | FONT_COURIER_BOLD_5Constant value for a Courier, bold, 5 pitch font. | 
| static int | FONT_COURIER_ITALIC_10Constant value for a Courier, italic, 10 pitch font. | 
| static int | FONT_COURIER_ITALIC_12Constant value for a Courier, italic, 12 pitch font. | 
| static int | FONT_GOTHIC_10Constant value for a Gothic, 10 pitch font. | 
| static int | FONT_GOTHIC_12Constant value for a Gothic, 12 pitch font. | 
| static int | FONT_GOTHIC_13Constant value for a Gothic, 13 pitch font. | 
| static int | FONT_GOTHIC_15Constant value for a Gothic, 15 pitch font. | 
| static int | FONT_GOTHIC_20Constant value for a Gothic, 20 pitch font. | 
| static int | FONT_GOTHIC_27Constant value for a Gothic, 27 pitch font. | 
| static int | FONT_GOTHIC_BOLD_10Constant value for a Gothic, bold, 10 pitch font. | 
| static int | FONT_GOTHIC_BOLD_12Constant value for a Gothic, bold, 12 pitch font. | 
| static int | FONT_GOTHIC_ITALIC_12Constant value for a Gothic, italic, 12 pitch font. | 
| static int | FONT_LETTER_GOTHIC_12Constant value for a letter Gothic, 12 pitch font. | 
| static int | FONT_LETTER_GOTHIC_BOLD_12Constant value for a letter Gothic, bold, 12 pitch font. | 
| static int | FONT_OCR_A_10Constant value for an OCR A, 10 pitch font. | 
| static int | FONT_OCR_B_10Constant value for an OCR B, 10 pitch font. | 
| static int | FONT_ORATOR_10Constant value for an Oritor, 10 pitch font. | 
| static int | FONT_ORATOR_BOLD_10Constant value for an Oritor, bold, 10 pitch font. | 
| static int | FONT_PRESTIGE_10Constant value for a Prestige, 10 pitch font. | 
| static int | FONT_PRESTIGE_12Constant value for a Prestige, 12 pitch font. | 
| static int | FONT_PRESTIGE_15Constant value for a Prestige, 15 pitch font. | 
| static int | FONT_PRESTIGE_BOLD_12Constant value for a Prestige, bold, 12 pitch font. | 
| static int | FONT_PRESTIGE_ITALIC_12Constant value for a Prestige, italic, 12 pitch font. | 
| static int | FONT_ROMAN_10Constant value for a Roman, 10 pitch font. | 
| static int | FONT_SCRIPT_12Constant value for a script, 12 pitch font. | 
| static int | FONT_SERIF_10Constant value for a Serif, 10 pitch font. | 
| static int | FONT_SERIF_12Constant value for a Serif, 12 pitch font. | 
| static int | FONT_SERIF_15Constant value for a Serif, 15 pitch font | 
| static int | FONT_SERIF_BOLD_12Constant value for a Serif, bold, 12 pitch font. | 
| static int | FONT_SERIF_ITALIC_10Constant value for a Serif, italic, 10 pitch font. | 
| static int | FONT_SERIF_ITALIC_12Constant value for a Serif, italic, 12 pitch font. | 
QUALITY_DRAFT, QUALITY_NEAR_LETTER| Constructor and Description | 
|---|
| SCS3812Writer(java.io.OutputStream out)Deprecated. 
 Replaced by SCS3812Writer(OutputStream, int, AS400).
        Any SCS3812Writer object that is created without
        specifying an AS400 system object on its constructor may
        not behave as expected in certain environments. | 
| SCS3812Writer(java.io.OutputStream out,
             int ccsid)Deprecated. 
 Replaced by SCS3812Writer(OutputStream, int, AS400).
        Any SCS3812Writer object that is created without
        specifying an AS400 system object on its constructor may
        not behave as expected in certain environments. | 
| SCS3812Writer(java.io.OutputStream out,
             int ccsid,
             AS400 system)Constructs a SCS3812Writer. | 
| SCS3812Writer(java.io.OutputStream out,
             java.lang.String encoding)Deprecated. 
 Replaced by SCS3812Writer(OutputStream, int, AS400).
        Any SCS3812Writer 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 | setBold(boolean bold)Sets bold text on or off. | 
| void | setDuplex(int duplex)Sets duplex printing mode. | 
| void | setFont(int font)Sets the current font. | 
| void | setTextOrientation(int orientation)Sets text orientation. | 
setCodePage, setCPI, setDestinationDrawer, setEnvelopeSize, setLeftMargin, setPaperSize, setQuality, setSourceDrawer, setUnderlinesetLPIabsoluteHorizontalPosition, absoluteVerticalPosition, carriageReturn, close, flush, getEncoding, lineFeed, newLine, relativeHorizontalPosition, relativeVerticalPosition, setHorizontalFormat, setVerticalFormat, write, write, write, writepublic static final int DUPLEX_DUPLEX
public static final int DUPLEX_SIMPLEX
public static final int DUPLEX_TUMBLE
public static final int FONT_COURIER_10
public static final int FONT_COURIER_12
public static final int FONT_COURIER_15
public static final int FONT_COURIER_17
public static final int FONT_COURIER_5
public static final int FONT_COURIER_BOLD_10
public static final int FONT_COURIER_BOLD_17
public static final int FONT_COURIER_BOLD_5
public static final int FONT_COURIER_ITALIC_10
public static final int FONT_COURIER_ITALIC_12
public static final int FONT_GOTHIC_10
public static final int FONT_GOTHIC_12
public static final int FONT_GOTHIC_13
public static final int FONT_GOTHIC_15
public static final int FONT_GOTHIC_20
public static final int FONT_GOTHIC_27
public static final int FONT_GOTHIC_BOLD_10
public static final int FONT_GOTHIC_BOLD_12
public static final int FONT_GOTHIC_ITALIC_12
public static final int FONT_LETTER_GOTHIC_12
public static final int FONT_LETTER_GOTHIC_BOLD_12
public static final int FONT_OCR_A_10
public static final int FONT_OCR_B_10
public static final int FONT_ORATOR_10
public static final int FONT_ORATOR_BOLD_10
public static final int FONT_PRESTIGE_10
public static final int FONT_PRESTIGE_12
public static final int FONT_PRESTIGE_15
public static final int FONT_PRESTIGE_BOLD_12
public static final int FONT_PRESTIGE_ITALIC_12
public static final int FONT_ROMAN_10
public static final int FONT_SCRIPT_12
public static final int FONT_SERIF_10
public static final int FONT_SERIF_12
public static final int FONT_SERIF_15
public static final int FONT_SERIF_BOLD_12
public static final int FONT_SERIF_ITALIC_10
public static final int FONT_SERIF_ITALIC_12
public SCS3812Writer(java.io.OutputStream out)
out - An OutputStream.public SCS3812Writer(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 SCS3812Writer(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 systemjava.io.UnsupportedEncodingException - If ccsid is invalid.public SCS3812Writer(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 SCS5219Writerjava.io.IOException - If an error occurs while communicating
   with the system.public void setBold(boolean bold)
             throws java.io.IOException
bold - If true, turns bold on; if false, turns bold off.
4java.io.IOException - If an error occurs while communicating
   with the system.public void setDuplex(int duplex)
duplex - The duplex setting.  Valid values are DUPLEX_DUPLEX,
   DUPLEX_SIMPLEX, or DUPLEX_TUMBLE.public void setFont(int font)
             throws java.io.IOException
font - The current font.  Constant values are defined for the
   valid values.java.io.IOException - If an error occurs while communicating
   with the system.public void setTextOrientation(int orientation)
orientation - The text orientation on the paper.  Valid values
   are 0, 90, 180 and 270.