Print on all Java platforms with JPS  Hot PDF Print E-mail
Tag it:
Delicious
Furl it!
Digg
NewsVine
Reddit
YahooMyWeb
Technorati
Articles Reviews JSP
Written by Peter V. Mikhalenko   
Saturday, 10 February 2007

{mos_sb_discuss:34}

Java Print Service (JPS), introduced in JDK 1.4, is an API intended for printing on all Java platforms. It includes the Java 2 Print API, which was used before the introduction of JPS. This article explains how client and server applications can locate and select printers that have the capabilities specified by the appropriate attributes.
 



Features

JPS APIs are based on the unified printing model described in JSR 6. These APIs use the extendable, industry standard attribute set specified in the Internet Printing Protocol (IPP) 1.1 from the Internet Engineering Task Force (IETF). JPS allows you to print even on very size-limited platforms such as J2ME; it also supports standard Java 2D graphics.

The most important features of JPS are:

  • Printer Discovery: Both the client- and server-side applications can programmatically do Printer Discovery and find suitable printers that can print the Print Job with user-specified attributes. There are a variety of Print Job attributes that you can specify, such as the number of sides (single-sided or double-sided); chromaticity (color or monochrome); media size (A4, legal, letter, etc.); Print Job name (specify a name for any printing job), and so on.

  • Print Job Attributes as Objects: Implementations of standard IPP attributes are included in the JPS API as objects.

  • Print Job Attribute Classes: Applications can extend the attributes included with the JPS API.

  • Service Provider Interface (SPI): Third parties can plug in their own Print Services using the SPIs. Print Service is implemented most effectively and efficiently when you use the vendor provided SPI.

Read more

 


 


User reviews

There are no user reviews for this item.

Add new review




Powered by jReviews

Last Updated ( Thursday, 05 July 2007 )
 
< Prev   Next >