1093N/A * Copyright (c) 2009, 2011, Oracle and/or its affiliates. All rights reserved. 449N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 449N/A * This code is free software; you can redistribute it and/or modify it 449N/A * under the terms of the GNU General Public License version 2 only, as 553N/A * published by the Free Software Foundation. Oracle designates this 449N/A * particular file as subject to the "Classpath" exception as provided 553N/A * by Oracle in the LICENSE file that accompanied this code. 449N/A * This code is distributed in the hope that it will be useful, but WITHOUT 449N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 449N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 449N/A * version 2 for more details (a copy is included in the LICENSE file that 449N/A * accompanied this code). 449N/A * You should have received a copy of the GNU General Public License version 449N/A * 2 along with this work; if not, write to the Free Software Foundation, 449N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 553N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 553N/A * or visit www.oracle.com if you need additional information or have any 449N/A * Utility methods for building a filemanager. 449N/A * There are no references here to file-system specific objects such as 449N/A * java.io.File or java.nio.file.Path. 449N/A * Set the context for JavacPathFileManager. 449N/A * The log to be used for error reporting. 449N/A * User provided charset (through javax.tools). 449N/A // Ideally, ClassLoader should be Closeable, but before JDK7 it is not. 449N/A // On older versions, try the following, to get a closeable classloader. 449N/A // 1: Allow client to specify the class to use via hidden option 449N/A // ignore errors loading user-provided class loader, fall through 449N/A // 2: If URLClassLoader implements Closeable, use that. 449N/A // 3: Try using private reflection-based CloseableURLClassLoader 449N/A // ignore errors loading workaround class loader, fall through 449N/A // 4: If all else fails, use plain old standard URLClassLoader 449N/A // <editor-fold defaultstate="collapsed" desc="Option handling"> 449N/A // operand missing, or process returned false 449N/A // <editor-fold defaultstate="collapsed" desc="Encoding"> 449N/A // slightly overestimate the buffer size to avoid reallocation. 449N/A // make sure there is at least one extra character 449N/A // bad character in input 449N/A // report coding error (warn only pre 1.5) 449N/A "illegal.char.for.encoding",
449N/A "illegal.char.for.encoding",
449N/A // skip past the coding error 449N/A // undo the flip() to prepare the output buffer 449N/A // for more translation 449N/A // <editor-fold defaultstate="collapsed" desc="ByteBuffers"> 449N/A * Make a byte buffer from an input stream. 449N/A * A single-element cache of direct byte buffers. 449N/A // <editor-fold defaultstate="collapsed" desc="Content cache">