Network print
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 AS/400 systems.
(Trying to open an AFPResourceList to a system that is running an earlier version than V3R7 generates a RequestNotSupportedException exception.)
The AS/400 Toolbox for Java classes for print objects are organized on a base class,
PrintObject,
and on a subclass for each of the six types of print objects.
The base class contains the methods and attributes common to all AS/400 print objects.
The subclasses contain methods and attributes specific to each subtype.
Use the network print classes for the following:
- Working with AS/400 print objects:
- PrintObjectList class -
use for listing and working with AS/400 print objects.
(Print objects include spooled files,
output queues,
printers,
Advanced Function Printing (AFP) resources,
printer files,
and writer jobs.)
- PrintObject base class -
use this base class and its subclasses for working with print objects.
- Retrieving PrintObject attributes
- Creating new AS/400 spooled files using the SpooledFileOutputStream class (use for EBCDIC-based printer data)
- Generating SNA Character Stream (SCS) printer data streams
- Reading spooled files and AFP resources using the PrintObjectInputStream
Reading spooled files using PrintObjectPageInputStream and PrintObjectTransformedInputStream
- Viewing Advanced Function Printing (AFP) and SNA Character Stream (SCS)
spooled files
Examples
- The Create Spooled File Example shows how to create a spooled file on an AS/400 from an input stream.
- The Create SCS Spooled File Example shows how to generate a SCS data stream using the SCS3812Writer class, and how to write the stream to a spooled file on the AS/400.
- The Read Spooled File Example shows how to read an existing AS/400 spooled file.
- The first Asynchronous List Example 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.
- The second Asynchronous List Example shows how to asynchronously list all spooled files on a system without using the PrintObjectListListener interface
- The Synchronous List Example shows how to synchronously list all spooled files on a system.
[ Legal | AS/400 Glossary ]