summaryrefslogtreecommitdiffstats
path: root/src/main/java/com/kitfox/svg/app/data/HandlerFactory.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/kitfox/svg/app/data/HandlerFactory.java')
-rw-r--r--src/main/java/com/kitfox/svg/app/data/HandlerFactory.java27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/main/java/com/kitfox/svg/app/data/HandlerFactory.java b/src/main/java/com/kitfox/svg/app/data/HandlerFactory.java
new file mode 100644
index 0000000..e1ed1b5
--- /dev/null
+++ b/src/main/java/com/kitfox/svg/app/data/HandlerFactory.java
@@ -0,0 +1,27 @@
+/*
+ * To change this template, choose Tools | Templates
+ * and open the template in the editor.
+ */
+
+package com.kitfox.svg.app.data;
+
+import java.net.URLStreamHandler;
+import java.net.URLStreamHandlerFactory;
+
+/**
+ *
+ * @author kitfox
+ */
+public class HandlerFactory implements URLStreamHandlerFactory
+{
+ static Handler handler = new Handler();
+
+ public URLStreamHandler createURLStreamHandler(String protocol)
+ {
+ if ("data".equals(protocol))
+ {
+ return handler;
+ }
+ return null;
+ }
+}