From 4f9533c7722fa07511a94d005227961f4a4dec23 Mon Sep 17 00:00:00 2001
From: Mark Wielaard
Date: Thu, 18 May 2006 17:29:21 +0000
Subject: Imported GNU Classpath 0.90
Imported GNU Classpath 0.90
* scripts/makemake.tcl: LocaleData.java moved to gnu/java/locale.
* sources.am: Regenerated.
* gcj/javaprims.h: Regenerated.
* Makefile.in: Regenerated.
* gcj/Makefile.in: Regenerated.
* include/Makefile.in: Regenerated.
* testsuite/Makefile.in: Regenerated.
* gnu/java/lang/VMInstrumentationImpl.java: New override.
* gnu/java/net/local/LocalSocketImpl.java: Likewise.
* gnu/classpath/jdwp/VMMethod.java: Likewise.
* gnu/classpath/jdwp/VMVirtualMachine.java: Update to latest
interface.
* java/lang/Thread.java: Add UncaughtExceptionHandler.
* java/lang/reflect/Method.java: Implements GenericDeclaration and
isSynthetic(),
* java/lang/reflect/Field.java: Likewise.
* java/lang/reflect/Constructor.java
* java/lang/Class.java: Implements Type, GenericDeclaration,
getSimpleName() and getEnclosing*() methods.
* java/lang/Class.h: Add new public methods.
* java/lang/Math.java: Add signum(), ulp() and log10().
* java/lang/natMath.cc (log10): New function.
* java/security/VMSecureRandom.java: New override.
* java/util/logging/Logger.java: Updated to latest classpath
version.
* java/util/logging/LogManager.java: New override.
From-SVN: r113887
---
libjava/classpath/javax/print/MultiDoc.java | 29 ++-
.../classpath/javax/print/MultiDocPrintJob.java | 27 ++-
.../javax/print/MultiDocPrintService.java | 11 +-
.../classpath/javax/print/PrintServiceLookup.java | 243 ++++++++++++++++++++-
libjava/classpath/javax/print/ServiceUI.java | 137 ++++++++++++
.../classpath/javax/print/attribute/package.html | 31 ++-
.../javax/print/attribute/standard/package.html | 18 +-
libjava/classpath/javax/print/event/package.html | 12 +-
libjava/classpath/javax/print/package.html | 200 ++++++++++++++++-
9 files changed, 679 insertions(+), 29 deletions(-)
create mode 100644 libjava/classpath/javax/print/ServiceUI.java
(limited to 'libjava/classpath/javax/print')
diff --git a/libjava/classpath/javax/print/MultiDoc.java b/libjava/classpath/javax/print/MultiDoc.java
index e7747bc..6e9ec84 100644
--- a/libjava/classpath/javax/print/MultiDoc.java
+++ b/libjava/classpath/javax/print/MultiDoc.java
@@ -1,5 +1,5 @@
/* MultiDoc.java --
- Copyright (C) 2004 Free Software Foundation, Inc.
+ Copyright (C) 2004, 2006 Free Software Foundation, Inc.
This file is part of GNU Classpath.
@@ -42,6 +42,25 @@ import java.io.IOException;
/**
+ *
+ * Implementations of this interface are used to pass multiple documents, to be
+ * printed as one print job, to the
+ * There exists no implementation of this interface in the Java Print Service
+ * API. Implementors may assume the following usage in print jobs and the needed
+ * behaviour for implementations: The print job fetches the single documents via
+ * iteration by consecutive calls of the {@link #getDoc()} method to obtain the
+ * current document follwing calls of the {@link #next()} method to get the next
+ * multidoc object for the next
+ * Implementations of this interface have to be multiple thread-safe.
+ *
+ * An instance can be obtained from every
+ * Implementations are located and loaded automatically through the SPI JAR
+ * file specification. Therefore implementation classes must provide a default
+ * constructor for instantiation. Furthermore, applications are able to
+ * register further instances directly at runtime.
+ *
+ * If an SecurityManager is installed implementors should call
+ *
+ * The registration will silently fail (returning
+ * The registration will silently fail (returning
+ * If multiple lookup services are registered and each has a default
+ * print service the result is not specified. Usually the default
+ * print service of the native platform lookup service is returned.
+ *
+ * The GNU classpath implementation will return the CUPS default
+ * printing service as the default print service, if available.
+ *
+ * The default print service may be overriden by users through
+ * the property
+ * The graphical print dialog enables the user to browse the available
+ * print services on the system. It provides user interfaces to interact
+ * with the most common printing attributes likes specifying the number of
+ * copies to print or the page ranges.
+ *
+ * The initial appearance of the print dialog as shown to the user may be
+ * specified by providing the default selected print service as well as
+ * initial values for the printing attributes in the user interface.
+ *
+ * The dialog will return the user selected print service and the given
+ * attributes set will contain the modified printing attributes. If the
+ * user cancels the printing dialog
+ * The values of the given attributes set (if not empty) will be displayed
+ * initially unless the are unsupported by the print service. If a print
+ * service does not support a particular value it is substituted with the
+ * default value of the print service.
+ * Provides classes and interfaces describing the roles and
syntax of attribute objects in the Java Print Service API.
+The package contains the base attribute interface and several subinterfaces
+describing the different attribute roles of printing attributes. Furthermore,
+abstract classes defining the syntax of attributes are provided. For
+collections of attributes based on their roles different set interfaces and
+implementing classes are available.
+
+Existing attribute roles are:
+MultiDoc
defines the interface for objects providing multiple
+ * documents for use in a print job.
+ * MultiDocPrintJob
instance.
+ * getDoc()
method call (if returned
+ * multidoc object is not null
). The print service will fetch the
+ * document object and then retrieve the print data from the document before it
+ * proceeds with the next call for the next MultiDoc object in the sequence.
+ * MultiDoc
object.
+ * Returns the next MultiDoc
object that contains the
+ * next document for retrieval.
*
- * @return the next MultiDoc
object
+ * @return The next MultiDoc
object, or null
+ * if no more documents are available.
*
* @throws IOException if an error occurs
*/
diff --git a/libjava/classpath/javax/print/MultiDocPrintJob.java b/libjava/classpath/javax/print/MultiDocPrintJob.java
index b096769..36089b5 100644
--- a/libjava/classpath/javax/print/MultiDocPrintJob.java
+++ b/libjava/classpath/javax/print/MultiDocPrintJob.java
@@ -1,5 +1,5 @@
/* MultiDocPrintJob.java --
- Copyright (C) 2004 Free Software Foundation, Inc.
+ Copyright (C) 2004, 2006 Free Software Foundation, Inc.
This file is part of GNU Classpath.
@@ -42,17 +42,34 @@ import javax.print.attribute.PrintRequestAttributeSet;
/**
+ * MultiDocPrintJob
represents a print job which supports
+ * printing of multiple documents as one print job.
+ * MultiDocPrintService
+ * available by calling the
+ * {@link javax.print.MultiDocPrintService#createMultiDocPrintJob()} method.
+ * A print job is bound to the print service it is created from.
+ * MultiDoc
object.
+ * Prints the documents supplied in the given MultiDoc
object
+ * as one print job with the given printing attributes.
*
- * @param multiDoc the document to print
- * @param attributes the printing attributes to apply
+ * @param multiDoc the documents to print. Every document must have a
+ * flavor supported by the bound print service.
+ * @param attributes the printing attributes to apply to the print job. If
+ * null
the default attribute values will be used.
*
- * @throws PrintExeption if an error occurs
+ * @throws PrintException if an error occurs. The thrown exception may
+ * implement refining print exception interface to provide more detail of
+ * the error.
+ *
+ * @see FlavorException
+ * @see AttributeException
*/
void print(MultiDoc multiDoc, PrintRequestAttributeSet attributes)
throws PrintException;
diff --git a/libjava/classpath/javax/print/MultiDocPrintService.java b/libjava/classpath/javax/print/MultiDocPrintService.java
index a71d23a..105e722 100644
--- a/libjava/classpath/javax/print/MultiDocPrintService.java
+++ b/libjava/classpath/javax/print/MultiDocPrintService.java
@@ -1,5 +1,5 @@
/* MultiDocPrintService.java --
- Copyright (C) 2004 Free Software Foundation, Inc.
+ Copyright (C) 2004, 2006 Free Software Foundation, Inc.
This file is part of GNU Classpath.
@@ -40,6 +40,13 @@ package javax.print;
/**
+ * MultiDocPrintService
represents print services that are
+ * capable of printing multiple documents as one print job. It provides an
+ * additional method for the creation of a print job for multiple documents.
+ *
+ * @see javax.print.MultiDoc
+ * @see javax.print.MultiDocPrintJob
+ *
* @author Michael Koch (konqueror@gmx.de)
*/
public interface MultiDocPrintService extends PrintService
@@ -47,7 +54,7 @@ public interface MultiDocPrintService extends PrintService
/**
* Create a job that can print a MultiDoc
object.
*
- * @return the new print job
+ * @return The created print job.
*/
MultiDocPrintJob createMultiDocPrintJob();
}
\ No newline at end of file
diff --git a/libjava/classpath/javax/print/PrintServiceLookup.java b/libjava/classpath/javax/print/PrintServiceLookup.java
index 2add8d1..57cb8dc 100644
--- a/libjava/classpath/javax/print/PrintServiceLookup.java
+++ b/libjava/classpath/javax/print/PrintServiceLookup.java
@@ -1,5 +1,5 @@
/* PrintServiceLookup.java --
- Copyright (C) 2004 Free Software Foundation, Inc.
+ Copyright (C) 2004, 2006 Free Software Foundation, Inc.
This file is part of GNU Classpath.
@@ -38,39 +38,266 @@ exception statement from your version. */
package javax.print;
+import gnu.classpath.ServiceFactory;
+import gnu.javax.print.CupsPrintServiceLookup;
+
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.HashSet;
+import java.util.Iterator;
+
import javax.print.attribute.AttributeSet;
/**
+ * PrintServiceLookup
implementations provide a way to lookup
+ * print services based on different constraints.
+ * checkPrintJobAccess()
to disable access for untrusted code.
+ * This check is to be made in every lookup service implementation for
+ * flexibility. Print services registered by applications through
+ * registerService(PrintService)
are suppressed in the
+ * lookup results if a security manager is installed and disallows access.
+ * PrintServiceLookup
object.
*/
public PrintServiceLookup()
{
- // Do nothing here
+ // nothing to do here
+ }
+
+ /**
+ * Explicitly registers the provided print service lookup implementation.
+ * false
) if
+ * the lookup service is already registered or the registration somehow
+ * else fails.
+ * true
if registered, false
otherwise.
+ */
+ public static boolean registerServiceProvider(PrintServiceLookup sp)
+ {
+ return printServiceLookups.add(sp);
+ }
+
+ /**
+ * Explicitly registers the provided print service instance.
+ * false
) if
+ * the print service instance is already registered or the registration
+ * somehow else fails.
+ * true
if registered, false
otherwise.
+ */
+ public static boolean registerService(PrintService service)
+ {
+ if (service instanceof StreamPrintService)
+ return false;
+
+ // security
+ try
+ {
+ SecurityManager sm = System.getSecurityManager();
+ if (sm != null)
+ sm.checkPrintJobAccess();
+
+ return printServices.add(service);
+ }
+ catch (SecurityException se)
+ {
+ return false;
+ }
+ }
+
+ /**
+ * Searches print services capable of printing in the given document flavor
+ * which supports the specified printing attributes.
+ *
+ * @param flavor the document flavor to support. If null
this
+ * constraint is ignored during lookup.
+ * @param attributes the printing attributes to support. If
+ * null
this constraint is ignored during lookup.
+ * @return The resulting available print services, or an array of length 0
+ * if none is found.
+ */
+ public static final PrintService[] lookupPrintServices(DocFlavor flavor,
+ AttributeSet attributes)
+ {
+ ArrayList result = new ArrayList();
+
+ PrintService[] services =
+ systemProvider.getPrintServices(flavor, attributes);
+ result.addAll(Arrays.asList(services));
+
+ for (Iterator it = printServiceLookups.iterator(); it.hasNext(); )
+ {
+ PrintServiceLookup lookup = (PrintServiceLookup) it.next();
+ services = lookup.getPrintServices(flavor, attributes);
+ result.addAll(Arrays.asList(services));
+ }
+
+ for (Iterator it = printServices.iterator(); it.hasNext(); )
+ {
+ PrintService service = (PrintService) it.next();
+ if (systemProvider.checkPrintService(flavor, attributes, service))
+ result.add(service);
+ }
+
+ return (PrintService[]) result.toArray(new PrintService[result.size()]);
+ }
+
+ /**
+ * Searches print services capable of multi document printing in all of the
+ * given document flavors and supporting the specified printing attributes.
+ *
+ * @param flavors the document flavors to support. If null
this
+ * constraint is ignored during lookup.
+ * @param attributes the printing attributes to support. If
+ * null
this constraint is ignored during lookup.
+ * @return The resulting available multi document print services, or an
+ * array of length 0 if none is found.
+ */
+ public static final MultiDocPrintService[] lookupMultiDocPrintServices(
+ DocFlavor[] flavors, AttributeSet attributes)
+ {
+ ArrayList result = new ArrayList();
+
+ MultiDocPrintService[] services =
+ systemProvider.getMultiDocPrintServices(flavors, attributes);
+ result.addAll(Arrays.asList(services));
+
+ for (Iterator it = printServiceLookups.iterator(); it.hasNext(); )
+ {
+ PrintServiceLookup lookup = (PrintServiceLookup) it.next();
+ services = lookup.getMultiDocPrintServices(flavors, attributes);
+ result.addAll(Arrays.asList(services));
+ }
+
+ for (Iterator it = printServices.iterator(); it.hasNext(); )
+ {
+ PrintService service = (PrintService) it.next();
+ if (systemProvider.checkMultiDocPrintService(flavors, attributes, service))
+ result.add(service);
+ }
+
+ return (MultiDocPrintService[]) result.toArray(
+ new MultiDocPrintService[result.size()]);
+ }
+
+
+ /**
+ * Searches the default print service in the current environment.
+ * javax.print.defaultPrinter
. A service
+ * specified must be found to be returned as the default.
+ * null
if none found.
+ */
+ public static final PrintService lookupDefaultPrintService()
+ {
+ // TODO Find out what the property controls and use it
+ // String defaultPrinter = System.getProperty("javax.print.defaultPrinter");
+
+ // first test for platform specified default services
+ PrintService service = systemProvider.getDefaultPrintService();
+
+ if (service != null)
+ return service;
+
+ // none available by systemDefaultProvider
+ // search in other registered ones and take first
+ for (Iterator it = printServiceLookups.iterator(); it.hasNext(); )
+ {
+ service = ((PrintServiceLookup) it.next()).getDefaultPrintService();
+ if (service != null)
+ return service;
+ }
+
+ return null;
}
/**
- * Not called direclty by applications.
+ * Not to be called directly by applications.
+ *
+ * @return The default lookup service of the implementing lookup service or
+ * null
if there is no default one.
*/
public abstract PrintService getDefaultPrintService();
/**
- * Not called direclty by applications.
+ * Not to be called directly by applications.
+ *
+ * @param flavors the document flavors which have to be supported.
+ * @param attributes the attributes which have to be supported.
+ *
+ * @return The multidoc print services of the implementing lookup service
+ * for the given parameters, or an array of length 0 if none is available.
*/
- public abstract MultiDocPrintService[] getMultiDocPrintServices(DocFlavor[] flavors, AttributeSet attributes);
+ public abstract MultiDocPrintService[]
+ getMultiDocPrintServices(DocFlavor[] flavors, AttributeSet attributes);
/**
- * Not called direclty by applications.
+ * Not to be called directly by applications.
+ *
+ * @return All known print services of the implementing lookup service
+ * regardless of supported features, or an array of length 0 if none is
+ * available.
*/
public abstract PrintService[] getPrintServices();
/**
- * Not called direclty by applications.
+ * Not to be called directly by applications.
+ *
+ * @param flavor the document flavor which has to be supported.
+ * @param attributes the attributes which have to be supported.
+ *
+ * @return The print services of the implementing lookup service
+ * for the given parameters, or an array of length 0 if none is available.
*/
- public abstract PrintService[] getPrintServices(DocFlavor flavor, AttributeSet attributes);
+ public abstract PrintService[]
+ getPrintServices(DocFlavor flavor, AttributeSet attributes);
}
diff --git a/libjava/classpath/javax/print/ServiceUI.java b/libjava/classpath/javax/print/ServiceUI.java
new file mode 100644
index 0000000..4a7b5bd
--- /dev/null
+++ b/libjava/classpath/javax/print/ServiceUI.java
@@ -0,0 +1,137 @@
+/* ServiceUI.java --
+ Copyright (C) 2006 Free Software Foundation, Inc.
+
+This file is part of GNU Classpath.
+
+GNU Classpath is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2, or (at your option)
+any later version.
+
+GNU Classpath is distributed in the hope that it will be useful, but
+WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with GNU Classpath; see the file COPYING. If not, write to the
+Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+02110-1301 USA.
+
+Linking this library statically or dynamically with other modules is
+making a combined work based on this library. Thus, the terms and
+conditions of the GNU General Public License cover the whole
+combination.
+
+As a special exception, the copyright holders of this library give you
+permission to link this library with independent modules to produce an
+executable, regardless of the license terms of these independent
+modules, and to copy and distribute the resulting executable under
+terms of your choice, provided that you also meet, for each linked
+independent module, the terms and conditions of the license of that
+module. An independent module is a module which is not derived from
+or based on this library. If you modify this library, you may extend
+this exception to your version of the library, but you are not
+obligated to do so. If you do not wish to do so, delete this
+exception statement from your version. */
+
+
+package javax.print;
+
+import gnu.javax.print.PrinterDialog;
+
+import java.awt.GraphicsConfiguration;
+import java.awt.GraphicsEnvironment;
+import java.awt.HeadlessException;
+import java.util.Arrays;
+
+import javax.print.attribute.PrintRequestAttributeSet;
+
+/**
+ * ServiceUI
provides a method to create a graphical
+ * print dialog.
+ * null
will be returned and
+ * the printing attributes set will be unmodified.
+ * null
is default screen.
+ * @param x the coordinate of the upper left edge of the dialog in screen
+ * coordinates (not relative to the parent frame).
+ * @param y the coordinate of the upper left edge of the dialog in screen
+ * coordinates (not relative to the parent frame).
+ * @param services the print services to browse (not null).
+ * @param defaultService the default service. If null
+ * the first of the print services in the services array will be used.
+ * @param flavor the flavours to be printed.
+ * @param attributes the attributes requested. Will be updated
+ * by selections done by the user in the dialog.
+ *
+ * @return The selected print service or null
if user
+ * has cancelled the printer dialog.
+ *
+ * @throws HeadlessException if GraphicsEnvironment is headless
+ * @throws IllegalArgumentException if services is null
or an
+ * empty array, attributes are null
or the given default
+ * PrintService
is not part of the print service array.
+ */
+ public static PrintService printDialog(GraphicsConfiguration gc, int x,
+ int y, PrintService[] services, PrintService defaultService,
+ DocFlavor flavor, PrintRequestAttributeSet attributes)
+ throws HeadlessException
+ {
+ if (GraphicsEnvironment.isHeadless())
+ throw new HeadlessException("GraphicsEnvironment is headless.");
+
+ if (services == null || services.length == 0 || attributes == null)
+ throw new IllegalArgumentException("Given print service array / "
+ + "attributes may not be null");
+
+ if (defaultService != null &&
+ ! Arrays.asList(services).contains(defaultService))
+ throw new IllegalArgumentException("defaultService is not contained "
+ + " in the print service array");
+
+ PrinterDialog dialog = new PrinterDialog(gc, services, defaultService,
+ flavor, attributes);
+
+ dialog.setLocation(x, y);
+ dialog.show();
+
+ return dialog.getSelectedPrintService();
+ }
+}
diff --git a/libjava/classpath/javax/print/attribute/package.html b/libjava/classpath/javax/print/attribute/package.html
index 37f24d5..0ab01ab 100644
--- a/libjava/classpath/javax/print/attribute/package.html
+++ b/libjava/classpath/javax/print/attribute/package.html
@@ -1,6 +1,6 @@
+
+
+Every attribute is of a certain syntax which defines its type and the
+representation of its value. The different syntax types are provided as
+abstract syntax classes (e.g. IntegerSyntax
). Concrete attribute
+implementations are subclasses of these abstract syntax classes.
+
+Attributes may be collected as sets of attributes. Different interfaces for +attribute collections per role and implementations based on a HashMap are +provided (for example +HashPrintJobAttributeSet for the print job attributes). +
+Since: 1.4
-Provides the printing attribute classes of the Java Print -Service API.
+Provides the printing attribute classes of the Java Print Service API. ++The package contains the available printing attributes. Some attributes are +used by the print service implementations to inform about the state of print +services and print jobs. Other attributes are needs to be provided by the +user/program to specify how a print job or a document in a print job should +be printed. +
+Note: Printing attributes can implement more than one attribute role +and therefore be used to specify e.g. print request attributes as well as +document attributes. +
Since: 1.4
diff --git a/libjava/classpath/javax/print/event/package.html b/libjava/classpath/javax/print/event/package.html index f811013..5091a71 100644 --- a/libjava/classpath/javax/print/event/package.html +++ b/libjava/classpath/javax/print/event/package.html @@ -1,6 +1,6 @@Provides events and listeners to be used with the Java Print Service API.
+Provides events and listeners to be used with the Java Print Service API. ++The provided listeners are used to register with print services and/or +print jobs to receive state information or to monitor the progress of +print jobs. Print jobs don't need to be implemented synchronous and +therefore should be monitored to know if they succeed or fail. For this +common task the PrintJobAdapter class +is provided. +
Since: 1.4
diff --git a/libjava/classpath/javax/print/package.html b/libjava/classpath/javax/print/package.html index dfa4b0f..7527432 100644 --- a/libjava/classpath/javax/print/package.html +++ b/libjava/classpath/javax/print/package.html @@ -1,6 +1,6 @@+The Java Print Service API enables programmers to: +
+
+
+
OutputStream
. Available stream print services are
+discovered via the static methods in the
+StreamPrintServiceFactory factory. The query can be constrained by supplying
+the the requested document format support and the needed output format.
+
+
+javax.print.attribute
. The actual available printing attributes
+are implemented in the javax.print.attribute.standard
package.
+PagesPerMinute
providing the number of pages a printer can print
+per minute. Status attributes like the PrinterState
attribute
+gives the current state (e.g. printer currently processes or is idle) of the
+printer.NumberOfInterveningJobs
attribute provides the number of jobs
+ahead in the print service queue before this job. Status attributes like the
+JobState
attribute gives the current state of the print job (like
+pending, processing or canceled).+import java.io.*; ++
+import javax.print.*; +import javax.print.attribute.*; +import javax.print.attribute.standard.*; +import javax.print.event.*; +
+public class Beispiel +{ + public static void main(String[] args) + { + // Using the predefined doc flavor for postscript mimetype + DocFlavor flavor = DocFlavor.INPUT_STREAM.POSTSCRIPT; +
+ // Looking for printservice supporting this doc flavor + PrintService[] services = PrintServiceLookup.lookupPrintServices(flavor, null); +
+ // Just take the first + PrintService service = services[0]; + System.out.println("Name :" + service.getName()); +
+ try + { + // Create a print job + DocPrintJob job = service.createPrintJob(); +
+ // We want to print a file so we construct an inputstream + // on the file to supply the print data as given in the doc flavor + File file = new File("File.ps"); + InputStream stream = new FileInputStream(file); +
+ // Build a attribute set with the wanted printing attributes + HashPrintRequestAttributeSet attr = new HashPrintRequestAttributeSet(); + attr.add(new Copies(2)); // two copies + attr.add(new PageRanges(2, 7)); // only the 2-7 pages +
+ // Construct a doc object with the provided class SimpleDoc + SimpleDoc doc = new SimpleDoc(stream, flavor, null); +
+ // register us as the print - use the adapter class + // and override the interesing failure condition + job.addPrintJobListener(new PrintJobAdapter() + { + public void printJobFailed(PrintJobEvent arg0) + { + System.out.println("The PrintJob failed."); + } + }); +
+ // start the printing process + job.print(doc, attr); +
+ // lets assume we want to cancel it + if (job instanceof CancelablePrintJob) + { + CancelablePrintJob cancelJob = (CancelablePrintJob) job; + cancelJob.cancel(); + } +
+ } + catch (PrintException e) + { + e.printStackTrace(); + } + catch (FileNotFoundException e) + { + e.printStackTrace(); + } + } +} +
+Since: 1.4 +
-- cgit v1.1diff --git a/libjava/classpath/javax/print/attribute/standard/package.html b/libjava/classpath/javax/print/attribute/standard/package.html index 4248acf..f6bec5f 100644 --- a/libjava/classpath/javax/print/attribute/standard/package.html +++ b/libjava/classpath/javax/print/attribute/standard/package.html @@ -1,7 +1,7 @@ -