Methods Summary |
---|
public void | addURL(java.net.URL url)Appends the specified URL to the list of URLs to search for classes and
resources.
|
public void | addURL(java.lang.String url)Appends the specified URL to the list of URLs to search for classes and
resources.
|
public java.lang.String | getLibraryDirectory()Gets the current directory used by the library loader for
storing native libraries before they are loaded into memory.
|
public java.util.Set | getMBeansFromURL(java.lang.String url)Loads a text file containing MLET tags that define the MBeans
to be added to the agent. The location of the text file is
specified by a URL. The text file is read using the UTF-8
encoding. The MBeans specified in the MLET file will be
instantiated and registered by the MBeanServer.
|
public java.util.Set | getMBeansFromURL(java.net.URL url)Loads a text file containing MLET tags that define the MBeans
to be added to the agent. The location of the text file is
specified by a URL. The text file is read using the UTF-8
encoding. The MBeans specified in the MLET file will be
instantiated and registered by the MBeanServer.
|
public java.net.URL | getResource(java.lang.String name)Finds the resource with the given name.
A resource is some data (images, audio, text, etc) that can be accessed by class code in a way that is
independent of the location of the code.
The name of a resource is a "/"-separated path name that identifies the resource.
|
public java.io.InputStream | getResourceAsStream(java.lang.String name)Returns an input stream for reading the specified resource. The search order is described in the documentation for
getResource(String).
|
public java.util.Enumeration | getResources(java.lang.String name)Finds all the resources with the given name. A resource is some
data (images, audio, text, etc) that can be accessed by class
code in a way that is independent of the location of the code.
The name of a resource is a "/"-separated path name that
identifies the resource.
|
public java.net.URL[] | getURLs()Returns the search path of URLs for loading classes and resources.
This includes the original list of URLs specified to the constructor,
along with any URLs subsequently appended by the addURL() method.
|
public void | setLibraryDirectory(java.lang.String libdir)Sets the directory used by the library loader for storing
native libraries before they are loaded into memory.
|