Class Handler
- java.lang.Object
-
- java.net.URLStreamHandler
-
- gov.usgs.util.protocolhandlers.data.Handler
-
public class Handler extends java.net.URLStreamHandler
Data URLs handler. "data:[<mediatype>][;base64],<data>"
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
PROTOCOL_HANDLERS_PROPERTY
property for protocol handlers
-
Constructor Summary
Constructors Constructor Description Handler()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.net.URLConnection
openConnection(java.net.URL url)
protected void
parseURL(java.net.URL url, java.lang.String spec, int start, int end)
static void
register()
Register data protocol handlerprotected java.lang.String
toExternalForm(java.net.URL url)
-
-
-
Field Detail
-
PROTOCOL_HANDLERS_PROPERTY
public static final java.lang.String PROTOCOL_HANDLERS_PROPERTY
property for protocol handlers- See Also:
- Constant Field Values
-
-
Method Detail
-
register
public static void register()
Register data protocol handler
-
openConnection
protected java.net.URLConnection openConnection(java.net.URL url) throws java.io.IOException
- Specified by:
openConnection
in classjava.net.URLStreamHandler
- Throws:
java.io.IOException
-
parseURL
protected void parseURL(java.net.URL url, java.lang.String spec, int start, int end) throws java.lang.SecurityException
- Overrides:
parseURL
in classjava.net.URLStreamHandler
- Throws:
java.lang.SecurityException
-
toExternalForm
protected java.lang.String toExternalForm(java.net.URL url)
- Overrides:
toExternalForm
in classjava.net.URLStreamHandler
-
-