com.sun.tools.doclets.internal.toolkit.util
Class SourcePath

java.lang.Object
  extended by com.sun.tools.doclets.internal.toolkit.util.SourcePath

public class SourcePath
extends java.lang.Object

This class is used to represent a source path which can contain only directories no zip files. If a zip file is specified in the command line it will not get reflected in the SourcePath. 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
private  char dirSeparator
           
private  java.lang.String pathstr
          The original class path string
private  java.io.File[] sourcePath
          List of source path entries.
 
Constructor Summary
SourcePath()
          Build a default source path from the path strings specified by the properties env.class.path.
SourcePath(java.lang.String pathstr)
          Build a source path from the specified path string on the command line.
 
Method Summary
 java.io.File getDirectory(java.lang.String name)
          Find the specified directory in the source path.
private  void init(java.lang.String pathstr)
          Initialize the SourcePath File array, which will contain only the directory names from the given path string.
 java.lang.String toString()
          Return original source path string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

dirSeparator

private final char dirSeparator

pathstr

private java.lang.String pathstr
The original class path string


sourcePath

private java.io.File[] sourcePath
List of source path entries. Each entry is a directory.

Constructor Detail

SourcePath

public SourcePath(java.lang.String pathstr)
Build a source path from the specified path string on the command line.


SourcePath

public SourcePath()
Build a default source path from the path strings specified by the properties env.class.path.

Method Detail

init

private void init(java.lang.String pathstr)
Initialize the SourcePath File array, which will contain only the directory names from the given path string.

Parameters:
pathstr - Path String.

getDirectory

public java.io.File getDirectory(java.lang.String name)
Find the specified directory in the source path.

Parameters:
name - Name of the directory to be searched for in the source path.
Returns:
File Return the directory if found else return null.

toString

public java.lang.String toString()
Return original source path string.

Overrides:
toString in class java.lang.Object