Revision: 7674
Author: victormote
Date: 2006-06-17 09:53:45 -0700 (Sat, 17 Jun 2006)
ViewCVS: http://svn.sourceforge.net/foray/?rev=7674&view=rev
Log Message:
-----------
Create and use new singleton class FOrayURLStreamHandlerFactory to handle custom URLStreamHandler creation.
Modified Paths:
--------------
trunk/foray/foray-font/src/java/org/foray/font/FontConfigParser.java
Modified: trunk/foray/foray-font/src/java/org/foray/font/FontConfigParser.java
===================================================================
--- trunk/foray/foray-font/src/java/org/foray/font/FontConfigParser.java 2006-06-17 16:53:33 UTC (rev 7673)
+++ trunk/foray/foray-font/src/java/org/foray/font/FontConfigParser.java 2006-06-17 16:53:45 UTC (rev 7674)
@@ -24,6 +24,7 @@
package org.foray.font;
+import org.foray.common.ClasspathHandler;
import org.foray.common.Environment;
import org.foray.common.RandomReader;
import org.foray.common.URLBuilder;
@@ -125,13 +126,7 @@
* only once, hence a static statement.
*/
static {
- String property = System.getProperty("java.protocol.handler.pkgs");
- if (property == null) {
- property = "org.axsl.common.urlhandler";
- } else {
- property += "|org.axsl.common.urlhandler";
- }
- System.setProperty("java.protocol.handler.pkgs", property);
+ ClasspathHandler.register();
}
/**
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|