2362N/A * Copyright (c) 2000, 2006, Oracle and/or its affiliates. All rights reserved. 0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 0N/A * This code is free software; you can redistribute it and/or modify it 0N/A * under the terms of the GNU General Public License version 2 only, as 2362N/A * published by the Free Software Foundation. Oracle designates this 0N/A * particular file as subject to the "Classpath" exception as provided 2362N/A * by Oracle in the LICENSE file that accompanied this code. 0N/A * This code is distributed in the hope that it will be useful, but WITHOUT 0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 0N/A * version 2 for more details (a copy is included in the LICENSE file that 0N/A * accompanied this code). 0N/A * You should have received a copy of the GNU General Public License version 0N/A * 2 along with this work; if not, write to the Free Software Foundation, 0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 2362N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 2362N/A * or visit www.oracle.com if you need additional information or have any 0N/A /* these variables used globally to store reference to the print 0N/A * data retrieved as a stream. On completion these are always closed 0N/A /* default values overridden by those extracted from the attributes */ 0N/A /* print job handle used by native code */ 0N/A /* buffer length for printing raw data */ 0N/A synchronized (
this) {
0N/A /* just return an empty set until the job is submitted */ 0N/A synchronized (
this) {
0N/A synchronized (
this) {
0N/A /* Closes any stream already retrieved for the data. 0N/A * We want to avoid unnecessarily asking the Doc to create a stream only 0N/A * to get a reference in order to close it because the job failed. 0N/A * If the representation class is itself a "stream", this 0N/A * closes that stream too. 0N/A /* since this method should always get called, here's where 0N/A * we will perform the clean up of any data stream supplied. 0N/A synchronized (
this) {
0N/A synchronized (
this) {
0N/A synchronized (
this) {
0N/A synchronized (
this) {
0N/A /* check if the parameters are valid before doing much processing */ 0N/A synchronized(
this) {
0N/A synchronized(
this) {
0N/A /* There's some inefficiency here as the job set is created even though 0N/A * it may never be requested. 0N/A private synchronized void 0N/A /* add the user name to the job */ 0N/A /* if no job name supplied use doc name (if supplied), if none and 0N/A * its a URL use that, else finally anything .. */ 0N/A // check write access 0N/A // If requested MediaSizeName is not supported, 0N/A // get the corresponding media size - this will 0N/A // be used to create a new PageFormat. 0N/A /* Cancel PrinterJob jobs that haven't yet completed. */ 0N/A synchronized (
this) {