|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.net.URLConnection | +--com.werken.classworlds.protocol.jar.JarUrlConnection
URLConnection
capable of handling multiply-nested jars.
Fields inherited from class java.net.URLConnection |
allowUserInteraction, connected, doInput, doOutput, ifModifiedSince, url, useCaches |
Method Summary | |
void |
connect()
|
protected java.net.URL |
getBaseResource()
Retrieve the base resource URL . |
java.io.InputStream |
getInputStream()
|
protected java.io.InputStream |
getSegmentInputStream(java.io.InputStream baseIn,
java.lang.String segment)
Retrieve the InputStream for the nesting
segment relative to a base InputStream . |
protected java.lang.String[] |
getSegments()
Retrieve the nesting path segments. |
protected void |
setupBaseResourceInputStream()
Setup the InputStream purely from the base resource. |
protected void |
setupPathedInputStream()
Setup the InputStream for URL with nested segments. |
Methods inherited from class java.net.URLConnection |
getAllowUserInteraction, getContent, getContent, getContentEncoding, getContentLength, getContentType, getDate, getDefaultAllowUserInteraction, getDefaultRequestProperty, getDefaultUseCaches, getDoInput, getDoOutput, getExpiration, getFileNameMap, getHeaderField, getHeaderField, getHeaderFieldDate, getHeaderFieldInt, getHeaderFieldKey, getIfModifiedSince, getLastModified, getOutputStream, getPermission, getRequestProperty, getURL, getUseCaches, guessContentTypeFromName, guessContentTypeFromStream, setAllowUserInteraction, setContentHandlerFactory, setDefaultAllowUserInteraction, setDefaultRequestProperty, setDefaultUseCaches, setDoInput, setDoOutput, setFileNameMap, setIfModifiedSince, setRequestProperty, setUseCaches, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
protected java.lang.String[] getSegments()
protected java.net.URL getBaseResource()
URL
.public void connect() throws java.io.IOException
connect
in class java.net.URLConnection
URLConnection
protected void setupBaseResourceInputStream() throws java.io.IOException
InputStream
purely from the base resource.java.io.IOException
- If an I/O error occurs.protected void setupPathedInputStream() throws java.io.IOException
InputStream
for URL with nested segments.java.io.IOException
- If an I/O error occurs.protected java.io.InputStream getSegmentInputStream(java.io.InputStream baseIn, java.lang.String segment) throws java.io.IOException
InputStream
for the nesting
segment relative to a base InputStream
.baseIn
- The base input-stream.segment
- The nesting segment path.java.io.IOException
- If an I/O error occurs.public java.io.InputStream getInputStream() throws java.io.IOException
getInputStream
in class java.net.URLConnection
URLConnection
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |