[FOray-commit] SF.net SVN: foray: [7678] trunk/foray/foray-common/src/java/org/foray/common
Modular XSL-FO Implementation for Java.
Status: Alpha
Brought to you by:
victormote
|
From: <vic...@us...> - 2006-06-17 18:27:11
|
Revision: 7678 Author: victormote Date: 2006-06-17 11:27:04 -0700 (Sat, 17 Jun 2006) ViewCVS: http://svn.sourceforge.net/foray/?rev=7678&view=rev Log Message: ----------- 1. Change method name to a better choice. 2. Add some javadoc. Modified Paths: -------------- trunk/foray/foray-common/src/java/org/foray/common/ClasspathHandler.java trunk/foray/foray-common/src/java/org/foray/common/FOrayURLStreamHandlerFactory.java Modified: trunk/foray/foray-common/src/java/org/foray/common/ClasspathHandler.java =================================================================== --- trunk/foray/foray-common/src/java/org/foray/common/ClasspathHandler.java 2006-06-17 18:12:50 UTC (rev 7677) +++ trunk/foray/foray-common/src/java/org/foray/common/ClasspathHandler.java 2006-06-17 18:27:04 UTC (rev 7678) @@ -60,11 +60,16 @@ }; } + /** + * Register an instance of this class with the custom + * URLStreamHandlerFactory so that this handler will be used for URLs of + * protocol "classpath". + */ public static void register() { FOrayURLStreamHandlerFactory factory = FOrayURLStreamHandlerFactory.getURLStreamHandlerFactory(); ClasspathHandler handler = new ClasspathHandler(); - factory.registerHandler("classpath", handler); + factory.registerProtocol("classpath", handler); } } Modified: trunk/foray/foray-common/src/java/org/foray/common/FOrayURLStreamHandlerFactory.java =================================================================== --- trunk/foray/foray-common/src/java/org/foray/common/FOrayURLStreamHandlerFactory.java 2006-06-17 18:12:50 UTC (rev 7677) +++ trunk/foray/foray-common/src/java/org/foray/common/FOrayURLStreamHandlerFactory.java 2006-06-17 18:27:04 UTC (rev 7678) @@ -80,7 +80,7 @@ * <li>If <code>protocol</code> has already been registered</li> * </ul> */ - public void registerHandler(String protocol, URLStreamHandler handler) + public void registerProtocol(String protocol, URLStreamHandler handler) throws InvalidParameterException { if (protocol == null) { throw new InvalidParameterException("Cannot register a null " This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |