< prev index next >

src/java.desktop/share/classes/sun/print/PSPrinterJob.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 1998, 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 --- 1,7 ---- /* ! * Copyright (c) 1998, 2018, 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
*** 135,145 **** private static final int BLUE_SHIFT = 0; private static final int LOWNIBBLE_MASK = 0x0000000f; private static final int HINIBBLE_MASK = 0x000000f0; private static final int HINIBBLE_SHIFT = 4; ! private static final byte hexDigits[] = { (byte)'0', (byte)'1', (byte)'2', (byte)'3', (byte)'4', (byte)'5', (byte)'6', (byte)'7', (byte)'8', (byte)'9', (byte)'A', (byte)'B', (byte)'C', (byte)'D', (byte)'E', (byte)'F' }; --- 135,145 ---- private static final int BLUE_SHIFT = 0; private static final int LOWNIBBLE_MASK = 0x0000000f; private static final int HINIBBLE_MASK = 0x000000f0; private static final int HINIBBLE_SHIFT = 4; ! private static final byte[] hexDigits = { (byte)'0', (byte)'1', (byte)'2', (byte)'3', (byte)'4', (byte)'5', (byte)'6', (byte)'7', (byte)'8', (byte)'9', (byte)'A', (byte)'B', (byte)'C', (byte)'D', (byte)'E', (byte)'F' };
*** 730,740 **** try { /** * Spool to the printer. */ String fileName = spoolFile.getAbsolutePath(); ! String execCmd[] = printExecCmd(mDestination, mOptions, mNoJobSheet, getJobNameInt(), 1, fileName); Process process = Runtime.getRuntime().exec(execCmd); process.waitFor(); --- 730,740 ---- try { /** * Spool to the printer. */ String fileName = spoolFile.getAbsolutePath(); ! String[] execCmd = printExecCmd(mDestination, mOptions, mNoJobSheet, getJobNameInt(), 1, fileName); Process process = Runtime.getRuntime().exec(execCmd); process.waitFor();
*** 1588,1598 **** int OPTIONS = 0x2; int JOBTITLE = 0x4; int COPIES = 0x8; int NOSHEET = 0x10; int pFlags = 0; ! String execCmd[]; int ncomps = 2; // minimum number of print args int n = 0; if (printer != null && !printer.equals("") && !printer.equals("lp")) { pFlags |= PRINTER; --- 1588,1598 ---- int OPTIONS = 0x2; int JOBTITLE = 0x4; int COPIES = 0x8; int NOSHEET = 0x10; int pFlags = 0; ! String[] execCmd; int ncomps = 2; // minimum number of print args int n = 0; if (printer != null && !printer.equals("") && !printer.equals("lp")) { pFlags |= PRINTER;
< prev index next >