Java Doc for DirectoryManager.java in  » 6.0-JDK-Modules-com.sun » tools » com » sun » tools » doclets » internal » toolkit » util » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » 6.0 JDK Modules com.sun » tools » com.sun.tools.doclets.internal.toolkit.util 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.sun.tools.doclets.internal.toolkit.util.DirectoryManager

DirectoryManager
public class DirectoryManager (Code)
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
since:
   1.2
author:
   Atul M Dambalkar


Field Summary
final public static  StringURL_FILE_SEPERATOR
     The file separator string, "/", used in the formation of the URL path.


Method Summary
public static  voidcreateDirectory(Configuration configuration, String path)
     Given a path string create all the directories in the path.
public static  StringcreatePathString(PackageDoc pd)
     Given a PackageDoc, return its URL path string.
public static  StringcreatePathString(ClassDoc cd)
     Given a ClassDoc, return its URL path string.
public static  StringgetDirectoryPath(PackageDoc pd)
     Given a PackageDoc, return the corresponding directory name with the platform-dependent file separator between subdirectory names. For example, if name of the package is "java.lang" , then it returns "java/lang" on Unix and "java\lang" on Windows. If name of the package contains no dot, then the value will be returned unchanged.
public static  StringgetDirectoryPath(String packageName)
     Given a package name, return the corresponding directory name with the platform-dependent file separator between subdirectory names. For example, if name of the package is "java.lang" , then it returns "java/lang" on Unix and "java\lang" on Windows. If name of the package contains no dot, then the value will be returned unchanged.
public static  StringgetPath(String name)
     Given a package name (a string), return the path string, with the URL separator "/" separating the subdirectory names. If name of the package contains no dot, then the value will be returned unchanged.
public static  StringgetPathNoTrailingSlash(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 "/".
public static  StringgetPathToClass(ClassDoc cd)
     Given a class name return the full path to the class file.
public static  StringgetPathToPackage(PackageDoc pd, String filename)
     Given a package name and a file name, return the full path to that file.
public static  StringgetRelativePath(String from, 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.
public static  StringgetRelativePath(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.
public static  StringgetRelativePath(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.

Field Detail
URL_FILE_SEPERATOR
final public static String URL_FILE_SEPERATOR(Code)
The file separator string, "/", used in the formation of the URL path.





Method Detail
createDirectory
public static void createDirectory(Configuration configuration, String path)(Code)
Given a path string create all the directories in the path. For example, if the path string is "java/applet", the method will create directory "java" and then "java/applet" if they don't exist. The file separator string "/" is platform dependent system property.
Parameters:
  path - Directory path string.



createPathString
public static String createPathString(PackageDoc pd)(Code)
Given a PackageDoc, return its URL path string.
Parameters:
  pd - PackageDoc
See Also:   DirectoryManager.getPath(String)



createPathString
public static String createPathString(ClassDoc cd)(Code)
Given a ClassDoc, return its URL path string.
Parameters:
  cd - ClassDoc
See Also:   DirectoryManager.getPath(String)



getDirectoryPath
public static String getDirectoryPath(PackageDoc pd)(Code)
Given a PackageDoc, return the corresponding directory name with the platform-dependent file separator between subdirectory names. For example, if name of the package is "java.lang" , then it returns "java/lang" on Unix and "java\lang" on Windows. If name of the package contains no dot, then the value will be returned unchanged. Because package names cannot end in a dot, the return value will never end with a slash.

Also see getPath for the URL separator version of this method that takes a string instead of a PackageDoc.
Parameters:
  pd - the PackageDoc the platform-dependent directory path for the package




getDirectoryPath
public static String getDirectoryPath(String packageName)(Code)
Given a package name, return the corresponding directory name with the platform-dependent file separator between subdirectory names. For example, if name of the package is "java.lang" , then it returns "java/lang" on Unix and "java\lang" on Windows. If name of the package contains no dot, then the value will be returned unchanged. Because package names cannot end in a dot, the return value will never end with a slash.

Also see getPath for the URL separator version of this method that takes a string instead of a PackageDoc.
Parameters:
  packageName - the name of the package the platform-dependent directory path for the package




getPath
public static String getPath(String name)(Code)
Given a package name (a string), return the path string, with the URL separator "/" separating the subdirectory names. If name of the package contains no dot, then the value will be returned unchanged. Because package names cannot end in a dot, the return value will never end with a slash.

For example if the string is "com.sun.javadoc" then the URL path string will be "com/sun/javadoc".
Parameters:
  name - the package name as a String the String URL path




getPathNoTrailingSlash
public static String getPathNoTrailingSlash(String path)(Code)
Given a relative or absolute path that might be empty, convert it to a path that does not end with a URL separator "/". Used for converting HtmlStandardWriter.relativepath when replacing .
Parameters:
  path - the path to convert. An empty path representsthe current directory.



getPathToClass
public static String getPathToClass(ClassDoc cd)(Code)
Given a class name return the full path to the class file. For example, if ClassDoc passed is for "java.lang.Object" then the string returned is "java/lang/Object.html".
Parameters:
  cd - ClassDoc.



getPathToPackage
public static String getPathToPackage(PackageDoc pd, String filename)(Code)
Given a package name and a file name, return the full path to that file. For example, if PackageDoc passed is for "java.lang" and the filename passed is "package-summary.html", then the string returned is "java/lang/package-summary.html".
Parameters:
  pd - PackageDoc.
Parameters:
  filename - File name to be appended to the path of the package.



getRelativePath
public static String getRelativePath(String from, String to)(Code)
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.

For example, if the parameter "from" is "java.lang" and parameter "to" is "java.applet", return string "../../java/applet".
Parameters:
  from - the package name from which path is calculated
Parameters:
  to - the package name to which path is calculated relative path between "from" and "to" with URLseparators
See Also:   DirectoryManager.getRelativePath(String)
See Also:   DirectoryManager.getPath(String)




getRelativePath
public static String getRelativePath(PackageDoc from)(Code)
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.

For example, if the string "from" is "java.lang", return "../../"
Parameters:
  from - the package String relative path from "from".
See Also:   DirectoryManager.getRelativePath(String,String)




getRelativePath
public static String getRelativePath(String from)(Code)
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.

For example, if the string "from" is "java.lang", return "../../"
Parameters:
  from - the package name String relative path from "from".
See Also:   DirectoryManager.getRelativePath(String,String)




Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

w_w___w._j_av_a2_s__.___com___ | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.