Uses of Package
javax.print
Package
Description
Provides classes and interfaces for a general printing API.
Provides the principal classes and interfaces for the Java Print
Service API.
Package
javax.print.event
contains event classes and listener
interfaces.Provides a set of "lightweight" (all-Java language) components
that, to the maximum degree possible, work the same on all platforms.
Provides classes and interfaces that deal with editable and noneditable text
components.
-
ClassDescriptionInterface
PrintService
is the factory for aDocPrintJob
.AStreamPrintServiceFactory
is the factory forStreamPrintService
instances, which can print to an output stream in a particular document format described as a mime type. -
ClassDescriptionInterface
Doc
specifies the interface for an object that supplies one piece of print data for a Print Job.ClassDocFlavor
encapsulates an object that specifies the format in which print data is supplied to aDocPrintJob
.ClassDocFlavor.BYTE_ARRAY
provides predefined static constantDocFlavor
objects for example doc flavors using a byte array (byte[]
) as the print data representation class.ClassDocFlavor.CHAR_ARRAY
provides predefined static constantDocFlavor
objects for example doc flavors using a character array (char[]
) as the print data representation class.ClassDocFlavor.INPUT_STREAM
provides predefined static constantDocFlavor
objects for example doc flavors using a byte stream (java.io.InputStream
) as the print data representation class.ClassDocFlavor.READER
provides predefined static constantDocFlavor
objects for example doc flavors using a character stream (java.io.Reader
) as the print data representation class.ClassDocFlavor.SERVICE_FORMATTED
provides predefined static constantDocFlavor
objects for example doc flavors for service formatted print data.ClassDocFlavor.STRING
provides predefined static constantDocFlavor
objects for example doc flavors using a string (java.lang.String
) as the print data representation class.ClassDocFlavor.URL
provides predefined static constantDocFlavor
objects.This interface represents a print job that can print a specified document with a set of job attributes.InterfaceMultiDoc
specifies the interface for an object that supplies more than one piece of print data for a Print Job.Obtained from aMultiDocPrintService
, aMultiDocPrintJob
can print a specified collection of documents as a single print job with a set of job attributes.InterfaceMultiPrintService
is the factory for aMultiDocPrintJob
.ClassPrintException
encapsulates a printing-related error condition that occurred while using a Print Service instance.InterfacePrintService
is the factory for aDocPrintJob
.Implementations of this class provide lookup services for print services (typically equivalent to printers) of a particular type.Services may optionally provide UIs which allow different styles of interaction in different roles.This class extendsPrintService
and represents a print service that prints data in different formats to a client-provided output stream.AStreamPrintServiceFactory
is the factory forStreamPrintService
instances, which can print to an output stream in a particular document format described as a mime type. -
ClassDescriptionThis interface represents a print job that can print a specified document with a set of job attributes.Interface
PrintService
is the factory for aDocPrintJob
. -
-