August 2001
Intermediate to advanced
480 pages
9h 14m
English
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 ...Read now
Unlock full access