01: /*
02: * @(#)Handler.java 1.2 04/12/06
03: *
04: * Copyright (c) 1997-2003 Sun Microsystems, Inc. All Rights Reserved.
05: *
06: * See the file "LICENSE.txt" for information on usage and redistribution
07: * of this file, and for a DISCLAIMER OF ALL WARRANTIES.
08: */
09: package pnuts.lib.jar;
10:
11: import java.net.URL;
12: import java.net.URLConnection;
13: import java.net.URLStreamHandler;
14: import java.io.IOException;
15:
16: /**
17: * a URLStreamHandler for JarResourceConnection
18: */
19: public class Handler extends URLStreamHandler {
20: public URLConnection openConnection(URL u) throws IOException {
21: return new JarResourceConnection(u);
22: }
23: }
|