static class CompoundJarURLStreamHandler.CompoundJarURLConnection
extends java.net.URLConnection
| Modifier and Type | Field and Description |
|---|---|
private java.net.URL |
baseJarUrl |
private static java.util.Map<java.lang.String,java.util.Map<java.lang.String,byte[]>> |
cache |
private java.lang.String[] |
path |
| Constructor and Description |
|---|
CompoundJarURLConnection(java.net.URL url) |
| Modifier and Type | Method and Description |
|---|---|
private void |
cacheJarFrom(java.io.InputStream currentStream,
java.util.Map<java.lang.String,byte[]> contents) |
private static void |
close(java.io.Closeable resource) |
void |
connect() |
java.io.InputStream |
getInputStream() |
private java.io.InputStream |
openEntryWithCache(java.lang.String[] path,
java.io.InputStream currentStream,
int currentDepth) |
private java.io.InputStream |
returnOrRecurse(java.lang.String[] path,
java.io.InputStream nextStream,
int currentDepth) |
addRequestProperty, getAllowUserInteraction, getConnectTimeout, getContent, getContent, getContentEncoding, getContentLength, getContentLengthLong, getContentType, getDate, getDefaultAllowUserInteraction, getDefaultRequestProperty, getDefaultUseCaches, getDoInput, getDoOutput, getExpiration, getFileNameMap, getHeaderField, getHeaderField, getHeaderFieldDate, getHeaderFieldInt, getHeaderFieldKey, getHeaderFieldLong, getHeaderFields, getIfModifiedSince, getLastModified, getOutputStream, getPermission, getReadTimeout, getRequestProperties, getRequestProperty, getURL, getUseCaches, guessContentTypeFromName, guessContentTypeFromStream, setAllowUserInteraction, setConnectTimeout, setContentHandlerFactory, setDefaultAllowUserInteraction, setDefaultRequestProperty, setDefaultUseCaches, setDoInput, setDoOutput, setFileNameMap, setIfModifiedSince, setReadTimeout, setRequestProperty, setUseCaches, toStringprivate final java.net.URL baseJarUrl
private final java.lang.String[] path
private static final java.util.Map<java.lang.String,java.util.Map<java.lang.String,byte[]>> cache
CompoundJarURLConnection(java.net.URL url)
throws java.net.MalformedURLException
java.net.MalformedURLExceptionpublic void connect()
throws java.io.IOException
connect in class java.net.URLConnectionjava.io.IOExceptionprivate java.io.InputStream openEntryWithCache(java.lang.String[] path,
java.io.InputStream currentStream,
int currentDepth)
throws java.io.IOException
java.io.IOExceptionprivate void cacheJarFrom(java.io.InputStream currentStream,
java.util.Map<java.lang.String,byte[]> contents)
throws java.io.IOException
java.io.IOExceptionprivate java.io.InputStream returnOrRecurse(java.lang.String[] path,
java.io.InputStream nextStream,
int currentDepth)
throws java.io.IOException
java.io.IOExceptionprivate static void close(java.io.Closeable resource)
public java.io.InputStream getInputStream()
throws java.io.IOException
getInputStream in class java.net.URLConnectionjava.io.IOException