ibm-information-center/dist/eclipse/plugins/i5OS.ic.rzahh_5.4.0.1/print.htm

98 lines
5.7 KiB
HTML

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en-us" xml:lang="en-us">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="security" content="public" />
<meta name="Robots" content="index,follow" />
<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' />
<meta name="DC.Type" content="reference" />
<meta name="DC.Title" content="Print classes" />
<meta name="abstract" content="" />
<meta name="description" content="" />
<meta name="copyright" content="(C) Copyright IBM Corporation 2006" />
<meta name="DC.Rights.Owner" content="(C) Copyright IBM Corporation 2006" />
<meta name="DC.Format" content="XHTML" />
<meta name="DC.Identifier" content="print" />
<meta name="DC.Language" content="en-us" />
<!-- All rights reserved. Licensed Materials Property of IBM -->
<!-- US Government Users Restricted Rights -->
<!-- Use, duplication or disclosure restricted by -->
<!-- GSA ADP Schedule Contract with IBM Corp. -->
<link rel="stylesheet" type="text/css" href="./ibmdita.css" />
<link rel="stylesheet" type="text/css" href="./ic.css" />
<title>Print classes</title>
</head>
<body id="print"><a name="print"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Print classes</h1>
<div><p></p>
<div class="section"><p>Print objects include spooled files, output queues, printers,
printer files, writer jobs, and Advanced Function Printing™ (AFP™)
resources, which include fonts, form definitions, overlays, page definitions,
and page segments. AFP resources are accessible only on Version 3 Release
7 (V3R7) and later versions of i5/OS™. (Trying to open an AFPResourceList
to a system that is running an earlier version than V3R7 generates a RequestNotSupportedException
exception.)</p>
<p>The IBM<sup>®</sup> Toolbox for Java™ classes for print objects are organized
on a base class, <a href="javadoc/com/ibm/as400/access/PrintObject.html#NAVBAR_TOP"> PrintObject</a>, and on a subclass for each of the six types
of print objects. The base class contains the methods and attributes common
to all server print objects. The subclasses contain methods and attributes
specific to each subtype.</p>
<p>Use the print classes for the following tasks:</p>
<ul><li>Working with server print objects: <ul><li><a href="printli.htm#printli">PrintObjectList</a> class - use for
listing and working with server print objects. (Print objects include spooled
files, output queues, printers, Advanced Function Printing (AFP)
resources, printer files, and writer jobs)</li>
<li><a href="printo.htm#printo">PrintObject</a> base class - use for
working with print objects</li>
</ul>
</li>
<li><a href="printatt.htm#printatt">Retrieving</a> PrintObject attributes</li>
<li><a href="printsf.htm#printsf">Creating</a> new server spooled files
using the SpooledFileOutputStream class (use for EBCDIC-based printer data)</li>
<li><a href="printscs.htm#printscs">Generating</a> SNA Character Stream
(SCS) printer data streams</li>
<li><a href="printrsf.htm#printrsf">Reading</a> spooled files and AFP resources
using the PrintObjectInputStream</li>
<li><a href="printsfv.htm#printsfv">Reading</a> spooled files using
PrintObjectPageInputStream and PrintObjectTransformedInputStream</li>
<li><a href="printcopy.htm#printcopy">Copying spooled files</a></li>
<li><a href="sfv.htm#sfv">Viewing</a> Advanced Function Printing (AFP)
and SNA Character Stream (SCS) spooled files</li>
</ul>
</div>
<div class="section" id="print__printexamples"><a name="print__printexamples"><!-- --></a><h4 class="sectiontitle">Examples</h4><ul><li><a href="npexamplecreatesplf.htm#npexamplecreatesplf">Example: Creating
spooled files</a> shows how to create a spooled file on a server from
an input stream</li>
<li><a href="npexamplecreatescssplf.htm#npexamplecreatescssplf">Example:
Creating SCS spooled files</a> shows how to generate a SCS data stream
using the SCS3812Writer class, and how to write the stream to a spooled file
on the server</li>
<li><a href="npexamplereadsplf.htm#npexamplereadsplf">Example: Reading
spooled files</a> shows how to use PrintObjectInputStream to read an existing
server spooled file</li>
<li><a href="transinstr.htm#transinstr">Example: Reading and transforming
spooled files</a> shows how to use PrintObjectPageInputStream and PrintObjectTransformedInputStream
to obtain different transformations when reading spooled file data</li>
<li> <a href="printcopy.htm#printcopy__copyspooledfile">Example: Copying
a spooled file</a> shows how to copy a spooled file to the same queue
that contains the file you want to copy.</li>
<li><a href="npexamplelistsplfasynch.htm#npexamplelistsplfasynch">Example:
Listing spooled files asynchronously (using listeners)</a> shows how to
asynchronously list all spooled files on a system and how to use the PrintObjectListListener
interface to get feedback as the list is being built</li>
<li><a href="npexamplelistsplfasynch2.htm#npexamplelistsplfasynch2">Example:
Listing spooled files asynchronously (without using listeners)</a> shows
how to asynchronously list all spooled files on a system <em>without</em> using
the PrintObjectListListener interface</li>
<li><a href="npexamplelistsplfsynch.htm#npexamplelistsplfsynch">Example:
Listing spooled files synchronously</a> shows how to synchronously list
all spooled files on a system</li>
</ul>
</div>
</div>
</body>
</html>