summaryrefslogtreecommitdiffstats
path: root/src/main/java/com/kitfox/svg/app/data/HandlerFactory.java
blob: e1ed1b57a58ab42a98513828caccce01b8667391 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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;
    }
}