APIdia Launch Partner
Top Description Constructors Methods
sun.security.tools

public Class PathList

extends Object
Class Inheritance
Imports
java.io.File, .IOException, java.net.MalformedURLException, .URL, java.util.StringTokenizer

A utility class for handle path list

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static String

Returns:

the resulting path
appendPath
(String
the target path
pathTo
,
String
the path to be appended to pathTo
pathFrom
)

Utility method for appending path from pathFrom to pathTo.

private static URL

Returns:

the resulting directory or JAR file URL
fileToURL
(File
the File object
file
)

Returns the directory or JAR file URL corresponding to the specified local file name.

public static URL[]

Returns:

the resulting array of directory and JAR file URLs
pathToURLs
(String
the search path string
path
)

Utility method for converting a search path string to an array of directory and JAR file URLs.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

PathListback to summary
public PathList()

Method Detail

appendPathback to summary
public static String appendPath(String pathTo, String pathFrom)

Utility method for appending path from pathFrom to pathTo.

Parameters
pathTo:String

the target path

pathFrom:String

the path to be appended to pathTo

Returns:String

the resulting path

fileToURLback to summary
private static URL fileToURL(File file)

Returns the directory or JAR file URL corresponding to the specified local file name.

Parameters
file:File

the File object

Returns:URL

the resulting directory or JAR file URL

pathToURLsback to summary
public static URL[] pathToURLs(String path)

Utility method for converting a search path string to an array of directory and JAR file URLs.

Parameters
path:String

the search path string

Returns:URL[]

the resulting array of directory and JAR file URLs