dbed73cbda2229fd1aa6dc5743993cae7f0a7ee9Sangeeta MisraCopyright (c) 2000, 2006, Oracle and/or its affiliates. All rights reserved.
dbed73cbda2229fd1aa6dc5743993cae7f0a7ee9Sangeeta MisraDO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
dbed73cbda2229fd1aa6dc5743993cae7f0a7ee9Sangeeta MisraThis code is free software; you can redistribute it and/or modify it
dbed73cbda2229fd1aa6dc5743993cae7f0a7ee9Sangeeta Misraunder the terms of the GNU General Public License version 2 only, as
dbed73cbda2229fd1aa6dc5743993cae7f0a7ee9Sangeeta Misrapublished by the Free Software Foundation. Oracle designates this
dbed73cbda2229fd1aa6dc5743993cae7f0a7ee9Sangeeta Misraparticular file as subject to the "Classpath" exception as provided
dbed73cbda2229fd1aa6dc5743993cae7f0a7ee9Sangeeta Misraby Oracle in the LICENSE file that accompanied this code.
dbed73cbda2229fd1aa6dc5743993cae7f0a7ee9Sangeeta MisraThis code is distributed in the hope that it will be useful, but WITHOUT
dbed73cbda2229fd1aa6dc5743993cae7f0a7ee9Sangeeta MisraANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
dbed73cbda2229fd1aa6dc5743993cae7f0a7ee9Sangeeta MisraFITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
dbed73cbda2229fd1aa6dc5743993cae7f0a7ee9Sangeeta Misraversion 2 for more details (a copy is included in the LICENSE file that
dbed73cbda2229fd1aa6dc5743993cae7f0a7ee9Sangeeta Misraaccompanied this code).
dbed73cbda2229fd1aa6dc5743993cae7f0a7ee9Sangeeta MisraYou should have received a copy of the GNU General Public License version
dbed73cbda2229fd1aa6dc5743993cae7f0a7ee9Sangeeta Misra2 along with this work; if not, write to the Free Software Foundation,
dbed73cbda2229fd1aa6dc5743993cae7f0a7ee9Sangeeta MisraInc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
dbed73cbda2229fd1aa6dc5743993cae7f0a7ee9Sangeeta MisraPlease contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
dbed73cbda2229fd1aa6dc5743993cae7f0a7ee9Sangeeta Misraor visit www.oracle.com if you need additional information or have any
dbed73cbda2229fd1aa6dc5743993cae7f0a7ee9Sangeeta MisraProvides the principal classes and interfaces for the
dbed73cbda2229fd1aa6dc5743993cae7f0a7ee9Sangeeta MisraJava<sup><font size="-2">TM</font></sup> Print Service API.
dbed73cbda2229fd1aa6dc5743993cae7f0a7ee9Sangeeta MisraThe Java Print Service API enables client and server applications to:
dbed73cbda2229fd1aa6dc5743993cae7f0a7ee9Sangeeta Misra<li>Discover and select print services based on their capabilities
dbed73cbda2229fd1aa6dc5743993cae7f0a7ee9Sangeeta Misra<li>Specify the format of print data
dbed73cbda2229fd1aa6dc5743993cae7f0a7ee9Sangeeta Misra<li>Submit print jobs to services that support the document type to
psStream = new FileInputStream("file.ps");
DocFlavor psInFormat = DocFlavor.INPUT_STREAM.POSTSCRIPT;
aset.add(new Copies(5));
PrintServiceLookup.lookupPrintServices(psInFormat, aset);
if (services.length > 0) {
job.print(myDoc, aset);
Please note: In the javax.print APIs, a null reference parameter to methods