org.codehaus.classworlds.uberjar.protocol.jar
Class JarUrlConnection
JarURLConnectionorg.codehaus.classworlds.uberjar.protocol.jar.JarUrlConnection
public class JarUrlConnection
extends JarURLConnection
URLConnection capable of handling multiply-nested jars.
$Id: JarUrlConnection.java 78 2004-07-01 13:59:13Z jvanzyl $
connect
public void connect()
throws IOException
getBaseResource
protected URL getBaseResource()
Retrieve the base resource URL.
getInputStream
public InputStream getInputStream()
throws IOException
getJarFile
public JarFile getJarFile()
throws IOExceptionjava.net.JarURLConnection.getJarFile()
getSegmentInputStream
protected InputStream getSegmentInputStream(InputStream baseIn,
String segment)
throws IOException Retrieve the InputStream for the nesting
segment relative to a base InputStream.
baseIn - The base input-stream.segment - The nesting segment path.
- The input-stream to the segment.
getSegments
protected String[] getSegments()
Retrieve the nesting path segments.
normaliseURL
protected static URL normaliseURL(URL url)
throws MalformedURLException
setupBaseResourceInputStream
protected void setupBaseResourceInputStream()
throws IOException Setup the InputStream purely from the base resource.
setupPathedInputStream
protected void setupPathedInputStream()
throws IOException Setup the InputStream for URL with nested segments.