| java.lang.Object com.lutris.classloader.ClassPath
Constructor Summary | |
public | ClassPath(LogChannel loadLogChannel) Constructs empty class path with no entries. | public | ClassPath(String[] entries, LogChannel loadLogChannel) Constructs class path with specified class path entries. | public | ClassPath(File[] entries, LogChannel loadLogChannel) Constructs class path with specified class path entries. | public | ClassPath(URL[] entries, LogChannel loadLogChannel) Constructs class path with specified class path entries. |
Method Summary | |
public void | add(String[] entries) Adds specified class path entries to class path. | public void | add(File[] entries) Adds specified class path entries to class path. | public void | add(URL[] entries) Adds specified class path entries to class path. | public void | clear() Clears class path by removing all entries. | public int | getLength() Get the number of entries in the classpath. | public Enumeration | getPath() Gets an Enumeration of class path entries. | public Resource | getResource(String name) Gets resource represented by specified file name. | public void | set(String[] entries) Sets class path with specified class path entries. | public void | set(File[] entries) Sets class path with specified class path entries. | public void | set(URL[] entries) Sets class path with specified class path entries. |
ClassPath | public ClassPath(String[] entries, LogChannel loadLogChannel)(Code) | | Constructs class path with specified class path entries. The
parameter is assumed to be an array of directories, URLs, and/or
zip files.
Parameters: entries - The class path represented by a String array. Parameters: loadLogChannel - The log channel, maybe null. |
ClassPath | public ClassPath(File[] entries, LogChannel loadLogChannel)(Code) | | Constructs class path with specified class path entries. The
parameter is assumed to be an array of zip files and/or directories.
Parameters: entries - The class path represented by a File array. Parameters: loadLogChannel - The log channel, maybe null. |
ClassPath | public ClassPath(URL[] entries, LogChannel loadLogChannel)(Code) | | Constructs class path with specified class path entries. The URLs can
represent directories and/or zip files on the local machine and/or
on remote machines.
Parameters: entries - The class path represented by a URL array. Parameters: loadLogChannel - The log channel, maybe null. |
add | public void add(String[] entries)(Code) | | Adds specified class path entries to class path. The
parameter is assumed to be an array of directories, URLs, and/or
zip files.
Parameters: entries - The class path entries to add. |
add | public void add(File[] entries)(Code) | | Adds specified class path entries to class path. The
parameter is assumed to be an array of zip files and/or directories.
Parameters: entries - The class path entries to add. |
add | public void add(URL[] entries)(Code) | | Adds specified class path entries to class path. The URLs can
represent directories and/or zip files on the local machine and/or
on remote machines.
Parameters: entries - The class path entries to add. |
getLength | public int getLength()(Code) | | Get the number of entries in the classpath.
The length ot the class path. |
getResource | public Resource getResource(String name)(Code) | | Gets resource represented by specified file name. The class path
entries are searched in order to find the desired resource. If the
resource is not found in the class path, null is returned.
Parameters: name - The file name of the resource. the resource associated with the given file name, or null ifit can not be found. See Also: Resource |
set | public void set(String[] entries)(Code) | | Sets class path with specified class path entries. The
parameter is assumed to be an array of directories, URLs, and/or
zip files.
Parameters: entries - The class path represented by a String array. |
set | public void set(File[] entries)(Code) | | Sets class path with specified class path entries. The
parameter is assumed to be an array of zip files and/or directories.
Parameters: entries - The class path represented by a File array. |
set | public void set(URL[] entries)(Code) | | Sets class path with specified class path entries. The URLs can
represent directories and/or zip files on the local machine and/or
on remote machines.
Parameters: entries - The class path represented by a URL array. |
|
|