553N/A * Copyright (c) 1998, 2008, 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 553N/A * published by the Free Software Foundation. Oracle designates this 0N/A * particular file as subject to the "Classpath" exception as provided 553N/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. 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 0N/A * Process and manage "-link" and "-linkoffline" to external packages. The 0N/A * options "-link" and "-linkoffline" both depend on the fact that Javadoc now 0N/A * generates "package-list"(lists all the packages which are getting 0N/A * documented) file in the current or the destination directory, while 0N/A * generating the documentation. 0N/A * This code is not part of an API. 0N/A * It is implementation that is subject to change. 0N/A * Do not use it as an API 0N/A * @author Atul M Dambalkar 0N/A * @author Robert Field 0N/A * Map package names onto Extern Item objects. 0N/A * Lazily initialized. 0N/A * The global configuration information for this run. 0N/A * True if we are using -linkoffline and false if -link is used instead. 0N/A * Stores the info for one external doc set 0N/A * Package name, found in the "package-list" file in the {@link path}. 0N/A * The URL or the directory path at which the package documentation will be 0N/A * If given path is directory path then true else if it is a URL then false. 0N/A * Constructor to build a Extern Item object and map it with the package name. 0N/A * If the same package name is found in the map, then the first mapped 0N/A * Item object or offline location will be retained. 0N/A * @param packagename Package name found in the "package-list" file. 0N/A * @param path URL or Directory path from where the "package-list" 0N/A * @param relative True if path is URL, false if directory path. 0N/A * String representation of "this" with packagename and the path. 0N/A * Determine if a doc item is externally documented. 0N/A * @param doc A ProgramElementDoc. 0N/A * Convert a link to be an external link if appropriate. 0N/A * @param pkgName The package name. 0N/A * @param relativepath The relative path. 0N/A * @param link The link to convert. 0N/A * @return if external return converted link else return null 0N/A * Build the extern package list from given URL or the directory path. 0N/A * Flag error if the "-link" or "-linkoffline" option is already used. 0N/A * @param url URL or Directory path. 0N/A * @param pkglisturl This can be another URL for "package-list" or ordinary 0N/A * @param reporter The <code>DocErrorReporter</code> used to report errors. 0N/A * @param linkoffline True if -linkoffline isused and false if -link is used. 0N/A * Get the Extern Item object associated with this package name. 0N/A * @param pkgname Package name. 0N/A * Adjusts the end file separator if it is missing from the URL or the 0N/A * directory path and depending upon the URL or file path, fetch or 0N/A * read the "package-list" file. 0N/A * @param urlOrDirPath URL or the directory path. 0N/A * @param pkgListUrlOrDirPath URL or directory path for the "package-list" file or the "package-list" 0N/A * If the URL or Directory path is missing end file separator, add that. 0N/A * Fetch the URL and read the "package-list" file. 0N/A * @param urlpath Path to the packages. 0N/A * @param pkglisturlpath URL or the path to the "package-list" file. 0N/A * Read the "package-list" file which is available locally. 0N/A * @param path URL or directory path to the packages. 0N/A * @param pkgListPath Path to the local "package-list" file. 0N/A * Read the file "package-list" and for each package name found, create 0N/A * Extern object and associate it with the package name in the map. 0N/A * @param input InputStream from the "package-list" file. 0N/A * @param path URL or the directory path to the packages. 0N/A * @param relative Is path relative? 0N/A //No exception was thrown, so this must really be a URL. 0N/A //Since exception is thrown, this must be a directory path.