src/share/classes/javax/print/StreamPrintServiceFactory.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this --- 1,7 ---- /* ! * Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this
*** 93,103 **** * to the {@code StreamPrintService}. * <p> * Although null is an acceptable value to use in the lookup of stream * printing services, it's typical to search for a particular * desired format, such as Postscript(TM). ! * <p> * @param flavor of the input document type - null means match all * types. * @param outputMimeType representing the required output format, used to * identify suitable stream printer factories. A value of null means * match all formats. --- 93,103 ---- * to the {@code StreamPrintService}. * <p> * Although null is an acceptable value to use in the lookup of stream * printing services, it's typical to search for a particular * desired format, such as Postscript(TM). ! * * @param flavor of the input document type - null means match all * types. * @param outputMimeType representing the required output format, used to * identify suitable stream printer factories. A value of null means * match all formats.
*** 152,162 **** * Applications may supply a null print stream to create a queryable * service. It is not valid to create a PrintJob for such a stream. * Implementations which allocate resources on construction should examine * the stream and may wish to only allocate resources if the stream is * non-null. ! * <p> * @param out destination stream for generated output. * @return a PrintService which will generate the format specified by the * DocFlavor supported by this Factory. */ public abstract StreamPrintService getPrintService(OutputStream out); --- 152,162 ---- * Applications may supply a null print stream to create a queryable * service. It is not valid to create a PrintJob for such a stream. * Implementations which allocate resources on construction should examine * the stream and may wish to only allocate resources if the stream is * non-null. ! * * @param out destination stream for generated output. * @return a PrintService which will generate the format specified by the * DocFlavor supported by this Factory. */ public abstract StreamPrintService getPrintService(OutputStream out);