|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.net.URLStreamHandler org.eclipse.emf.common.archive.Handler
public class Handler
A URL stream handler that can be registered
to support archive access protocol.
It uses ArchiveURLConnection
to implement the connection.
Constructor Summary | |
---|---|
Handler()
Creates an instance. |
Method Summary | |
---|---|
static void |
main(java.lang.String[] args)
Registers this handler and interprets each argument as URL to be opened, read in, and written out to System.out. |
protected java.net.URLConnection |
openConnection(java.net.URL url)
Returns a new ArchiveURLConnection . |
protected void |
parseURL(java.net.URL url,
java.lang.String specification,
int start,
int limit)
Overrides parsing the URL to validate constraints on well formed archive syntax. |
static void |
register()
Registers this class. |
Methods inherited from class java.net.URLStreamHandler |
---|
equals, getDefaultPort, getHostAddress, hashCode, hostsEqual, openConnection, sameFile, setURL, setURL, toExternalForm |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Handler()
Method Detail |
---|
public static void register()
URLStreamHandler
in a package called named xyz in a package of your choosing,
and then registering that chosen prefix package name
in the system property for "java.protocol.handler.pkgs"
,
which is an "|" separated list of package prefixes to search for handlers.
public static void main(java.lang.String[] args) throws java.io.IOException
args
- URLs to open, read, and write to System.out
java.io.IOException
- if there are problems opening or reading from the URLs, or writing to System.out.protected void parseURL(java.net.URL url, java.lang.String specification, int start, int limit)
parseURL
in class java.net.URLStreamHandler
URLStreamHandler.parseURL(java.net.URL, java.lang.String, int, int)
protected java.net.URLConnection openConnection(java.net.URL url) throws java.io.IOException
ArchiveURLConnection
.
openConnection
in class java.net.URLStreamHandler
java.io.IOException
|
Copyright 2001-2012 IBM Corporation and others. All Rights Reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |