A.1. Chapter 4—Developing Bundles
A.1.1. The LPD Print Service
A.1.1.1. com/acme/service/print/PrintService.java
package com.acme.service.print; import java.io.IOException; import java.net.URL; /** * The PrintService prints contents from a URL or * gets status of a print queue. */ public interface PrintService { /** * Prints the contents from the source to the specified printer. * @param printer the name of the destination printer * @param source the source of the contents to be printed * @exception IOException if printing fails */ public void print(String printer, URL source) throws IOException; /** * Gets the status of the specified printer. * @param printer the name of the printer * @return the status of the print queue as an array, * one ...
Get Programming Open Service Gateways with Java Embedded Server™ Technology now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.