Java Doc for URLClassPath.java in  » 6.0-JDK-Modules » j2me » sun » misc » 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 » 6.0 JDK Modules » j2me » sun.misc 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   sun.misc.URLClassPath

URLClassPath
public class URLClassPath (Code)
This class is used to maintain a search path of URLs for loading classes and resources from both JAR files and directories.
author:
   David Connelly
version:
   1.62, 03/09/00


Field Summary
final static  StringJAVA_VERSION
    
final static  StringUSER_AGENT_JAVA_VERSION
    

Constructor Summary
public  URLClassPath(URL[] urls, URLStreamHandlerFactory factory)
     Creates a new URLClassPath for the given URLs.
public  URLClassPath(URL[] urls)
    

Method Summary
public  voidaddURL(URL url)
     Appends the specified URL to the search path of directory and JAR file URLs from which to load classes and resources.
static  voidcheck(URL url)
    
public  URLcheckURL(URL url)
    
public  URLfindResource(String name, boolean check)
     Finds the resource with the specified name on the URL search path or null if not found or security check fails.
public  EnumerationfindResources(String name, boolean check)
     Finds all resources on the URL search path with the given name.
public  ResourcegetResource(String name, boolean check)
     Finds the first Resource on the URL search path which has the specified name.
public  ResourcegetResource(String name)
    
public  EnumerationgetResources(String name, boolean check)
     Finds all resources on the URL search path with the given name.
public  EnumerationgetResources(String name)
    
public  URL[]getURLs()
     Returns the original search path of URLs.
public static  URL[]pathToURLs(String path)
     Convert class path specification into an array of file URLs.

Field Detail
JAVA_VERSION
final static String JAVA_VERSION(Code)



USER_AGENT_JAVA_VERSION
final static String USER_AGENT_JAVA_VERSION(Code)




Constructor Detail
URLClassPath
public URLClassPath(URL[] urls, URLStreamHandlerFactory factory)(Code)
Creates a new URLClassPath for the given URLs. The URLs will be searched in the order specified for classes and resources. A URL ending with a '/' is assumed to refer to a directory. Otherwise, the URL is assumed to refer to a JAR file.
Parameters:
  urls - the directory and JAR file URLs to search for classesand resources
Parameters:
  factory - the URLStreamHandlerFactory to use when creating new URLs



URLClassPath
public URLClassPath(URL[] urls)(Code)




Method Detail
addURL
public void addURL(URL url)(Code)
Appends the specified URL to the search path of directory and JAR file URLs from which to load classes and resources.



check
static void check(URL url) throws IOException(Code)



checkURL
public URL checkURL(URL url)(Code)



findResource
public URL findResource(String name, boolean check)(Code)
Finds the resource with the specified name on the URL search path or null if not found or security check fails.
Parameters:
  name - the name of the resource
Parameters:
  check - whether to perform a security check a URL for the resource, or nullif the resource could not be found.



findResources
public Enumeration findResources(String name, boolean check)(Code)
Finds all resources on the URL search path with the given name. Returns an enumeration of the URL objects.
Parameters:
  name - the resource name an Enumeration of all the urls having the specified name



getResource
public Resource getResource(String name, boolean check)(Code)
Finds the first Resource on the URL search path which has the specified name. Returns null if no Resource could be found.
Parameters:
  name - the name of the Resource
Parameters:
  check - whether to perform a security check the Resource, or null if not found



getResource
public Resource getResource(String name)(Code)



getResources
public Enumeration getResources(String name, boolean check)(Code)
Finds all resources on the URL search path with the given name. Returns an enumeration of the Resource objects.
Parameters:
  name - the resource name an Enumeration of all the resources having the specified name



getResources
public Enumeration getResources(String name)(Code)



getURLs
public URL[] getURLs()(Code)
Returns the original search path of URLs.



pathToURLs
public static URL[] pathToURLs(String path)(Code)
Convert class path specification into an array of file URLs. The path of the file is encoded before conversion into URL form so that reserved characters can safely appear in the path.



Methods inherited from java.lang.Object
public boolean equals(Object obj)(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.