Java Doc for ResourceLoader.java in  » Database-ORM » MMBase » org » mmbase » 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 » Database ORM » MMBase » org.mmbase.util 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   java.lang.ClassLoader
      org.mmbase.util.ResourceLoader

ResourceLoader
public class ResourceLoader extends ClassLoader (Code)
MMBase resource loader, for loading config-files and those kind of things. It knows about MMBase config file locations. I read http://www.javaworld.com/javaqa/2003-08/02-qa-0822-urls.html. Programmers should do something like this if they need a configuration file:
 InputStream configStream = ResourceLoader.getConfigurationRoot().getResourceAsStream("modules/myconfiguration.xml");
 
or
 InputSource config = ResourceLoader.getConfigurationRoot().getInputSource("modules/myconfiguration.xml");
 
of if you need a list of all resources:
 ResourceLoader builderLoader = new ResourceLoader("builders");
 List list = builderLoader.getResourcePaths(ResourceLoader.XML_PATTERN, true)
 
When you want to place a configuration file then you have several options, wich are in order of preference:
  1. Place it as on object in 'resources' builder (if such a builder is present)
  2. Place it in the directory identified by the 'mmbase.config' setting (A system property or web.xml setting).
  3. Place it in the directory WEB-INF/config. If this is a real directory (you are not in a war), then the resource will also be returned by ResourceLoader.getFiles .
  4. Place it in the class-loader path of your app-server, below the 'org.mmbase.config' package. For tomcat this boils down to the following list (Taken from tomcat 5 class-loader howto)
    1. Bootstrap classes of your JVM
    2. System class loader classses
    3. /WEB-INF/classes of your web application. If this is a real directory (you are not in a war), then the resource will also be returned by ResourceLoader.getFiles .
    4. /WEB-INF/lib/*.jar of your web application
    5. $CATALINA_HOME/common/classes
    6. $CATALINA_HOME/common/endorsed/*.jar
    7. $CATALINA_HOME/common/lib/*.jar
    8. $CATALINA_BASE/shared/classes
    9. $CATALINA_BASE/shared/lib/*.jar

Resources which do not reside in the MMBase configuration repository, can also be handled. Those can be resolved relatively to the web root, using ResourceLoader.getWebRoot() .

Resources can programmaticly created or changed by the use of ResourceLoader.createResourceAsStream , or something like ResourceLoader.getWriter .

If you want to check beforehand if a resource can be changed, then something like resourceLoader.getResource().openConnection().getDoOutput() can be used.

That is also valid if you want to check for existance. resourceLoader.getResource().openConnection().getDoInput().

If you want to remove a resource, you must write null to all URL's returned by ResourceLoader.findResources (Do for every URL:url.openConnection().getOutputStream().write(null);)

Encodings

ResourceLoader is well aware of encodings. You can open XML's as Reader, and this will be done using the encoding specified in the XML itself. When saving an XML using a Writer, this will also be done using the encoding specified in the XML.

For property-files, the java-unicode-escaping is undone on loading, and applied on saving, so there is no need to think of that.


author:
   Michiel Meeuwissen
since:
   MMBase-1.8
version:
   $Id: ResourceLoader.java,v 1.52 2007/12/17 11:36:05 michiel Exp $

Inner Class :abstract protected class PathURLStreamHandler extends URLStreamHandler
Inner Class :protected class FileURLStreamHandler extends PathURLStreamHandler
Inner Class :protected class NodeURLStreamHandler extends PathURLStreamHandler
Inner Class :protected class ServletResourceURLStreamHandler extends PathURLStreamHandler
Inner Class :protected class ClassLoaderURLStreamHandler extends PathURLStreamHandler

Field Summary
final protected static  StringCLASSLOADER_ROOT
     Used when getting resources with normal class-loader.
final public static  StringDEFAULT_CONTEXT
    
final public static  StringFILENAME_FIELD
    
final public static  StringHANDLE_FIELD
    
final protected static  StringINDEX
     Used when using getResourcePaths for normal class-loaders.
final public static  StringLASTMODIFIED_FIELD
    
final public static  URLNODE_URL_CONTEXT
     Protocol prefix used by URL objects in this class.
final protected static  StringPROTOCOL
     Protocol prefix used by URL objects in this class.
final public static  StringRESOURCENAME_FIELD
    
final protected static  StringRESOURCE_ROOT
     Used for files, and servlet resources.
final public static  intTYPE_CONFIG
    
final public static  StringTYPE_FIELD
    
final public static  intTYPE_WEB
    
final public static  PatternXML_PATTERN
     Can be used as an argument for ResourceLoader.getResourcePaths(Pattern,boolean) .
static  NodeManagerresourceBuilder
    

Constructor Summary
protected  ResourceLoader()
     This constructor instantiates a new root resource-loader.
protected  ResourceLoader(ResourceLoader cl, String context)
     Instantiates a ResourceLoader for a 'sub directory' of given ResourceLoader.

Method Summary
 voidcheckShadowedNewerResources(String name)
     Logs warning if 'newer' resources are shadowed by older ones.
public  OutputStreamcreateResourceAsStream(String name)
     If you want to change a resource, or create one, then this method can be used.
public  booleanequals(Object o)
    
protected  URLfindResource(String name)
     If name starts with '/' or 'mm:/' the 'parent' resourceloader is used. Otherwise the name is resolved relatively.
protected  Enumeration<URL>findResources(String name)
    
public  Set<String>getChildContexts(Pattern pattern, boolean recursive)
     Returns a set of context strings which can be used to instantiated new ResourceLoaders (resource loaders for directories) (see ResourceLoader.getChildResourceLoader(String) ).
public  ResourceLoadergetChildResourceLoader(String context)
    
public static synchronized  ResourceLoadergetConfigurationRoot()
    
public  URLgetContext()
     Returns the 'context' for the ResourceLoader (an URL).
public static  StringgetDirectory(String path)
     Utility method to return the 'directory' part of a resource-name. Used e.g.
public static  StringgetDirectoryName(String path)
     Utility method to return the name of the directory of a resource-name.
public  DocumentgetDocument(String name)
     Returns the givens resource as a Document (parsed XML).
public  DocumentgetDocument(String name, boolean validation, Class baseClass)
     Returns the givens resource as a Document (parsed XML).
public static  DocumentgetDocument(URL url, boolean validation, Class baseClass)
     Static version of ResourceLoader.getDocument(String,boolean,Class) , can e.g.
public  List<File>getFiles(String name)
     Used by ResourceWatcher .
public  InputSourcegetInputSource(String name)
     Returns the givens resource as an InputSource (XML streams).
public static  InputSourcegetInputSource(URL url)
     Static version of ResourceLoader.getInputSource(String) , can e.g.
public static  StringgetName(String path)
     Utility method to return the name part of a resource-name (removed directory and 'extension'). Used e.g.
public  ResourceLoadergetParentResourceLoader()
     Returns the 'parent' ResourceLoader.
public  ReadergetReader(String name)
     Returns a reader for a given resource.
public  List<URL>getResourceList(String name)
     Returns a List, containing all URL's which may represent the given resource.
 NodegetResourceNode(String name)
    
public  Set<String>getResourcePaths(Pattern pattern, boolean recursive)
     Returns a set of 'sub resources' (read: 'files in the same directory'), which can succesfully be loaded by the ResourceLoader.
Parameters:
  pattern - A Regular expression pattern to which the file-name must match, or null if no restrictions apply
Parameters:
  recursive - If true, then also subdirectories are searched.
protected  Set<String>getResourcePaths(Pattern pattern, boolean recursive, boolean directories)
    
public static synchronized  ResourceLoadergetSystemRoot()
     Singleton that returns the ResourceLoader for loading from the file-system, relative from current working directory and falling back to the file system roots.
public static synchronized  ResourceLoadergetWebDirectory(HttpServletRequest request)
    
public static synchronized  ResourceLoadergetWebRoot()
    
public  WritergetWriter(String name)
     Returns a writer for a given resource, so that you can overwrite or create it.
public  inthashCode()
    
public static synchronized  voidinit(ServletContext sc)
     Initializes the Resourceloader using a servlet-context (makes resolving relatively to WEB-INF/config possible).
Parameters:
  sc - The ServletContext used for determining the mmbase configuration directory.
public static  voidinitLogging()
    
public static  voidmain(String[] argv)
    
protected  URLnewURL(String url)
     Creates a new URL object, which is used to load resources.
public static  voidsetResourceBuilder(NodeManager b)
     Sets the MMBase builder which must be used for resource.
 URLshadowed(File f, String name)
     Determine wether File f is shadowed.
Parameters:
  name - Check for resource with this name
Parameters:
  file - The file to check for this resource.
public  voidstoreDocument(String name, Document doc)
     Creates a resource for a given Document.
public  voidstoreSource(String name, Source source, DocumentType docType)
     Creates a resource with given name for given Source.
public  StringtoInternalForm(String name)
     Returns an abstract URL for a resource with given name, findResource(name).toString() would give an 'external' form.
public static  StringtoInternalForm(URL u)
    
public  StringtoString()
    

Field Detail
CLASSLOADER_ROOT
final protected static String CLASSLOADER_ROOT(Code)
Used when getting resources with normal class-loader.



DEFAULT_CONTEXT
final public static String DEFAULT_CONTEXT(Code)



FILENAME_FIELD
final public static String FILENAME_FIELD(Code)



HANDLE_FIELD
final public static String HANDLE_FIELD(Code)



INDEX
final protected static String INDEX(Code)
Used when using getResourcePaths for normal class-loaders.



LASTMODIFIED_FIELD
final public static String LASTMODIFIED_FIELD(Code)



NODE_URL_CONTEXT
final public static URL NODE_URL_CONTEXT(Code)
Protocol prefix used by URL objects in this class.



PROTOCOL
final protected static String PROTOCOL(Code)
Protocol prefix used by URL objects in this class.



RESOURCENAME_FIELD
final public static String RESOURCENAME_FIELD(Code)



RESOURCE_ROOT
final protected static String RESOURCE_ROOT(Code)
Used for files, and servlet resources.



TYPE_CONFIG
final public static int TYPE_CONFIG(Code)



TYPE_FIELD
final public static String TYPE_FIELD(Code)



TYPE_WEB
final public static int TYPE_WEB(Code)



XML_PATTERN
final public static Pattern XML_PATTERN(Code)
Can be used as an argument for ResourceLoader.getResourcePaths(Pattern,boolean) . MMBase works mainly with xml configuration files, so this comes in handy.



resourceBuilder
static NodeManager resourceBuilder(Code)




Constructor Detail
ResourceLoader
protected ResourceLoader()(Code)
This constructor instantiates a new root resource-loader. This constructor is protected (so you may use it in an extension), but normally use: ResourceLoader.getConfigurationRoot or ResourceLoader.getWebRoot .



ResourceLoader
protected ResourceLoader(ResourceLoader cl, String context)(Code)
Instantiates a ResourceLoader for a 'sub directory' of given ResourceLoader. Used by ResourceLoader.getChildResourceLoader .




Method Detail
checkShadowedNewerResources
void checkShadowedNewerResources(String name)(Code)
Logs warning if 'newer' resources are shadowed by older ones.



createResourceAsStream
public OutputStream createResourceAsStream(String name) throws IOException(Code)
If you want to change a resource, or create one, then this method can be used. Specify the desired resource-name and you get an OutputStream back, to which you must write. This is a shortcut to findResource(name).openConnection().getOutputStream() If the given resource already existed, it will be overwritten, or shadowed, if it was not writeable.
throws:
  IOException - If the Resource for some reason could not be created.



equals
public boolean equals(Object o)(Code)

See Also:   java.lang.Object.equals(java.lang.Object)



findResource
protected URL findResource(String name)(Code)
If name starts with '/' or 'mm:/' the 'parent' resourceloader is used. Otherwise the name is resolved relatively. (For the root ResourceLoader that is the same as starting with /)



findResources
protected Enumeration<URL> findResources(String name) throws IOException(Code)

See Also:   ResourceLoader.getResourceList



getChildContexts
public Set<String> getChildContexts(Pattern pattern, boolean recursive)(Code)
Returns a set of context strings which can be used to instantiated new ResourceLoaders (resource loaders for directories) (see ResourceLoader.getChildResourceLoader(String) ).
Parameters:
  pattern - A Regular expression pattern to which the file-name must match, or null if no restrictions apply
Parameters:
  recursive - If true, then also subdirectories are searched.



getChildResourceLoader
public ResourceLoader getChildResourceLoader(String context)(Code)

Parameters:
  context - a context relative to the current resource loader a new 'child' ResourceLoader or the parent ResourceLoader if the context is ".."
See Also:   ResourceLoader.ResourceLoader(ResourceLoader,String)



getConfigurationRoot
public static synchronized ResourceLoader getConfigurationRoot()(Code)
Singleton that returns the ResourceLoader for loading mmbase configuration



getContext
public URL getContext()(Code)
Returns the 'context' for the ResourceLoader (an URL).



getDirectory
public static String getDirectory(String path)(Code)
Utility method to return the 'directory' part of a resource-name. Used e.g. when loading builders in MMBase.



getDirectoryName
public static String getDirectoryName(String path)(Code)
Utility method to return the name of the directory of a resource-name. This does not include any /-chars any more.
since:
   MMBase-1.8.2



getDocument
public Document getDocument(String name) throws org.xml.sax.SAXException, IOException(Code)
Returns the givens resource as a Document (parsed XML). This can come in handly, because most configuration is in XML.
Parameters:
  name - The name of the resource to be loaded The Document if succesful, null if there is no such resource.
throws:
  SAXException - If the resource does not present parseable XML.
throws:
  IOException -



getDocument
public Document getDocument(String name, boolean validation, Class baseClass) throws org.xml.sax.SAXException, IOException(Code)
Returns the givens resource as a Document (parsed XML). This can come in handly, because most configuration is in XML.
Parameters:
  name - The name of the resource to be loaded
Parameters:
  validation - If true, validate the xml. By dtd if one of the first lines starts with <!DOCTYPE, by XSD otherwise
Parameters:
  baseClass - If validation is true, the base class to search for the validating xsd or dtd The Document if succesful, null if there is no such resource.
throws:
  SAXException - If the resource does not present parseable XML.
throws:
  IOException -



getDocument
public static Document getDocument(URL url, boolean validation, Class baseClass) throws org.xml.sax.SAXException, IOException(Code)
Static version of ResourceLoader.getDocument(String,boolean,Class) , can e.g. be used in combination with ResourceLoader.getResourceList(String)



getFiles
public List<File> getFiles(String name)(Code)
Used by ResourceWatcher . And by some deprecated code that wants to produce File objects. A List of all files associated with the resource.



getInputSource
public InputSource getInputSource(String name) throws IOException(Code)
Returns the givens resource as an InputSource (XML streams). ResourceLoader is often used for XML. The System ID is set, otherwise you could as wel do new InputSource(r.getResourceAsStream());
Parameters:
  name - The name of the resource to be loaded The InputSource if succesfull, null otherwise.



getInputSource
public static InputSource getInputSource(URL url) throws IOException(Code)
Static version of ResourceLoader.getInputSource(String) , can e.g. be used in combination with ResourceLoader.getResourceList(String)



getName
public static String getName(String path)(Code)
Utility method to return the name part of a resource-name (removed directory and 'extension'). Used e.g. when loading builders in MMBase.



getParentResourceLoader
public ResourceLoader getParentResourceLoader()(Code)
Returns the 'parent' ResourceLoader. Or null if this ClassLoader has no parent. You can create a ResourceLoader with a parent by ResourceLoader.getChildResourceLoader(String) .



getReader
public Reader getReader(String name) throws IOException(Code)
Returns a reader for a given resource. This performs the tricky task of finding the encoding. Resources are actually InputStreams (byte arrays), but often they are quite text-oriented (like e.g. XML's or property-files), so this method may be useful. A resource is supposed to be a property-file if it's name ends in ".properties", it is supposed to be XML if it's content starts with <?xml.
See Also:   ResourceLoader.getResourceAsStream(String)



getResourceList
public List<URL> getResourceList(String name)(Code)
Returns a List, containing all URL's which may represent the given resource. This can be used to show what resource whould be loaded and what resource whould be masked, or one can also simply somehow 'merge' all these resources.



getResourceNode
Node getResourceNode(String name)(Code)
A Node associated with the resource.Used by ResourceWatcher.



getResourcePaths
public Set<String> getResourcePaths(Pattern pattern, boolean recursive)(Code)
Returns a set of 'sub resources' (read: 'files in the same directory'), which can succesfully be loaded by the ResourceLoader.
Parameters:
  pattern - A Regular expression pattern to which the file-name must match, or null if no restrictions apply
Parameters:
  recursive - If true, then also subdirectories are searched. A Set of Strings which can be successfully loaded with the resourceloader.



getResourcePaths
protected Set<String> getResourcePaths(Pattern pattern, boolean recursive, boolean directories)(Code)
Used by ResourceLoader.getResourcePaths(Pattern,boolean) and ResourceLoader.getChildContexts(Pattern,boolean)
Parameters:
  pattern - A Regular expression pattern to which the file-name must match, or null if no restrictions apply
Parameters:
  recursive - If true, then also subdirectories are searched.
Parameters:
  directories - ResourceLoader.getChildContexts(Pattern,boolean) supplies true ResourceLoader.getResourcePaths(Pattern,boolean) supplies false



getSystemRoot
public static synchronized ResourceLoader getSystemRoot()(Code)
Singleton that returns the ResourceLoader for loading from the file-system, relative from current working directory and falling back to the file system roots. This can be used in command-line tools and such. In a servlet environment you should use either ResourceLoader.getConfigurationRoot or ResourceLoader.getWebRoot .



getWebDirectory
public static synchronized ResourceLoader getWebDirectory(HttpServletRequest request)(Code)
Returns the resource loader associated with the directory of the given request



getWebRoot
public static synchronized ResourceLoader getWebRoot()(Code)
Singleton that returns the ResourceLoader for witch the base path is the web root



getWriter
public Writer getWriter(String name) throws IOException(Code)
Returns a writer for a given resource, so that you can overwrite or create it. This performs the tricky task of serializing to the right encoding. It supports the same tricks as ResourceLoader.getReader , but then inversed.
See Also:   ResourceLoader.getReader(String)
See Also:   ResourceLoader.createResourceAsStream(String)



hashCode
public int hashCode()(Code)

See Also:   java.lang.Object.hashCode



init
public static synchronized void init(ServletContext sc)(Code)
Initializes the Resourceloader using a servlet-context (makes resolving relatively to WEB-INF/config possible).
Parameters:
  sc - The ServletContext used for determining the mmbase configuration directory. Or null.



initLogging
public static void initLogging()(Code)



main
public static void main(String[] argv)(Code)
For testing purposes only



newURL
protected URL newURL(String url) throws MalformedURLException(Code)
Creates a new URL object, which is used to load resources. First a normal java.net.URL is instantiated, if that fails, we check for the 'mmbase' protocol. If so, a URL is instantiated with a URLStreamHandler which can handle that. If that too fails, it should actually already be a MalformedURLException, but we try supposing it is some existing file and return a file: URL. If no such file, only then a MalformedURLException is thrown.



setResourceBuilder
public static void setResourceBuilder(NodeManager b)(Code)
Sets the MMBase builder which must be used for resource. The builder must have an URL and a HANDLE field. This method can be called only once.
Parameters:
  b - An MMObjectBuilder (this may be null if no such builder available)
throws:
  RuntimeException - if builder was set already.



shadowed
URL shadowed(File f, String name)(Code)
Determine wether File f is shadowed.
Parameters:
  name - Check for resource with this name
Parameters:
  file - The file to check for this resource. The URL for the shadowing resource, or null if not shadowed.
throws:
  IllegalArgumentException - if file is not a file associated with the resource with given name.



storeDocument
public void storeDocument(String name, Document doc) throws IOException(Code)
Creates a resource for a given Document.
Parameters:
  name - Name of the resource.
Parameters:
  doc - The xml document which must be stored.
See Also:   ResourceLoader.createResourceAsStream(String)



storeSource
public void storeSource(String name, Source source, DocumentType docType) throws IOException(Code)
Creates a resource with given name for given Source.
See Also:   ResourceLoader.createResourceAsStream(String)
Parameters:
  docType - Document which must be used, or null if none.



toInternalForm
public String toInternalForm(String name)(Code)
Returns an abstract URL for a resource with given name, findResource(name).toString() would give an 'external' form.



toInternalForm
public static String toInternalForm(URL u)(Code)



toString
public String toString()(Code)

See Also:   java.lang.Object.toString



Methods inherited from java.lang.ClassLoader
public synchronized void clearAssertionStatus()(Code)(Java Doc)
final protected Class defineClass(byte[] b, int off, int len) throws ClassFormatError(Code)(Java Doc)
final protected Class defineClass(String name, byte[] b, int off, int len) throws ClassFormatError(Code)(Java Doc)
final protected Class defineClass(String name, byte[] b, int off, int len, ProtectionDomain protectionDomain) throws ClassFormatError(Code)(Java Doc)
final protected Class defineClass(String name, java.nio.ByteBuffer b, ProtectionDomain protectionDomain) throws ClassFormatError(Code)(Java Doc)
protected Package definePackage(String name, String specTitle, String specVersion, String specVendor, String implTitle, String implVersion, String implVendor, URL sealBase) throws IllegalArgumentException(Code)(Java Doc)
protected Class findClass(String name) throws ClassNotFoundException(Code)(Java Doc)
protected String findLibrary(String libname)(Code)(Java Doc)
final protected Class findLoadedClass(String name)(Code)(Java Doc)
protected URL findResource(String name)(Code)(Java Doc)
protected Enumeration<URL> findResources(String name) throws IOException(Code)(Java Doc)
final protected Class findSystemClass(String name) throws ClassNotFoundException(Code)(Java Doc)
protected Package getPackage(String name)(Code)(Java Doc)
protected Package[] getPackages()(Code)(Java Doc)
final public ClassLoader getParent()(Code)(Java Doc)
public URL getResource(String name)(Code)(Java Doc)
public InputStream getResourceAsStream(String name)(Code)(Java Doc)
public Enumeration<URL> getResources(String name) throws IOException(Code)(Java Doc)
public static ClassLoader getSystemClassLoader()(Code)(Java Doc)
public static URL getSystemResource(String name)(Code)(Java Doc)
public static InputStream getSystemResourceAsStream(String name)(Code)(Java Doc)
public static Enumeration<URL> getSystemResources(String name) throws IOException(Code)(Java Doc)
public Class loadClass(String name) throws ClassNotFoundException(Code)(Java Doc)
protected synchronized Class loadClass(String name, boolean resolve) throws ClassNotFoundException(Code)(Java Doc)
final protected void resolveClass(Class c)(Code)(Java Doc)
public synchronized void setClassAssertionStatus(String className, boolean enabled)(Code)(Java Doc)
public synchronized void setDefaultAssertionStatus(boolean enabled)(Code)(Java Doc)
public synchronized void setPackageAssertionStatus(String packageName, boolean enabled)(Code)(Java Doc)
final protected void setSigners(Class c, Object[] signers)(Code)(Java Doc)

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)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.