|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sun.tools.doclets.internal.toolkit.util.DirectoryManager
public class DirectoryManager
Handle the directory creations and the path string generations. All static - never instaniated. This code is not part of an API. It is implementation that is subject to change. Do not use it as an API
| Field Summary | |
|---|---|
static java.lang.String |
URL_FILE_SEPERATOR
The file separator string, "/", used in the formation of the URL path. |
| Constructor Summary | |
|---|---|
private |
DirectoryManager()
Never instaniated. |
| Method Summary | |
|---|---|
static void |
createDirectory(Configuration configuration,
java.lang.String path)
Given a path string create all the directories in the path. |
static java.lang.String |
createPathString(ClassDoc cd)
Given a ClassDoc, return its URL path string. |
static java.lang.String |
createPathString(PackageDoc pd)
Given a PackageDoc, return its URL path string. |
static java.lang.String |
getDirectoryPath(PackageDoc pd)
Given a PackageDoc, return the corresponding directory name with the platform-dependent file separator between subdirectory names. |
static java.lang.String |
getDirectoryPath(java.lang.String packageName)
Given a package name, return the corresponding directory name with the platform-dependent file separator between subdirectory names. |
static java.lang.String |
getPath(java.lang.String name)
Given a package name (a string), return the path string, with the URL separator "/" separating the subdirectory names. |
static java.lang.String |
getPathNoTrailingSlash(java.lang.String path)
Given a relative or absolute path that might be empty, convert it to a path that does not end with a URL separator "/". |
static java.lang.String |
getPathToClass(ClassDoc cd)
Given a class name return the full path to the class file. |
static java.lang.String |
getPathToPackage(PackageDoc pd,
java.lang.String filename)
Given a package name and a file name, return the full path to that file. |
static java.lang.String |
getRelativePath(PackageDoc from)
Given a package name as a string, return relative path string from the corresponding package directory to the root of the documentation, using the URL separator "/" between subdirectory names. |
static java.lang.String |
getRelativePath(java.lang.String from)
Given a package name as a string, return relative path string from the corresponding package directory to the root of the documentation, using the URL separator "/" between subdirectory names. |
static java.lang.String |
getRelativePath(java.lang.String from,
java.lang.String to)
Given two package names as strings, return the relative path from the package directory corresponding to the first string to the package directory corresponding to the second string, with the URL file separator "/" separating subdirectory names. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String URL_FILE_SEPERATOR
| Constructor Detail |
|---|
private DirectoryManager()
| Method Detail |
|---|
public static java.lang.String createPathString(PackageDoc pd)
pd - PackageDocgetPath(String)public static java.lang.String createPathString(ClassDoc cd)
cd - ClassDocgetPath(String)public static java.lang.String getDirectoryPath(PackageDoc pd)
Also see getPath for the URL separator version of this method that takes a string instead of a PackageDoc.
pd - the PackageDoc
public static java.lang.String getDirectoryPath(java.lang.String packageName)
Also see getPath for the URL separator version of this method that takes a string instead of a PackageDoc.
packageName - the name of the package
public static java.lang.String getPath(java.lang.String name)
For example if the string is "com.sun.javadoc" then the URL path string will be "com/sun/javadoc".
name - the package name as a String
public static java.lang.String getRelativePath(java.lang.String from,
java.lang.String to)
For example, if the parameter "from" is "java.lang" and parameter "to" is "java.applet", return string "../../java/applet".
from - the package name from which path is calculatedto - the package name to which path is calculated
getRelativePath(String),
getPath(String)public static java.lang.String getRelativePath(PackageDoc from)
For example, if the string "from" is "java.lang", return "../../"
from - the package
getRelativePath(String, String)public static java.lang.String getRelativePath(java.lang.String from)
For example, if the string "from" is "java.lang", return "../../"
from - the package name
getRelativePath(String, String)public static java.lang.String getPathNoTrailingSlash(java.lang.String path)
path - the path to convert. An empty path represents
the current directory.
public static void createDirectory(Configuration configuration,
java.lang.String path)
path - Directory path string.
public static java.lang.String getPathToPackage(PackageDoc pd,
java.lang.String filename)
pd - PackageDoc.filename - File name to be appended to the path of the package.public static java.lang.String getPathToClass(ClassDoc cd)
cd - ClassDoc.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||