Package com.iizix.util.memjar
Class MemoryJarURLConnection
java.lang.Object
java.net.URLConnection
com.iizix.util.AbstractJarURLConnection
com.iizix.util.memjar.MemoryJarURLConnection
Extends the JarURLConnection to handle in-memory loaded MemoryJarFile instead of JarFile.
- Author:
- Christopher Mindus
- Field Summary- Fields inherited from class com.iizix.util.AbstractJarURLConnection- jarFileURLConnection- Fields inherited from class java.net.URLConnection- allowUserInteraction, connected, doInput, doOutput, ifModifiedSince, url, useCaches
- Constructor SummaryConstructorsModifierConstructorDescription- protectedCreates an MemoryJar URL connection.- protected- MemoryJarURLConnection- (URL url, MemoryJarFile jarFile) Creates an MemoryJar URL connection.
- Method SummaryModifier and TypeMethodDescription- void- connect()Opens a communications link to the resource referenced by this URL, if such a connection has not already been established.Returns an input stream that reads from this open connection.Gets the IJarFile.- Methods inherited from class com.iizix.util.AbstractJarURLConnection- getAttributes, getCertificates, getEntryName, getJarEntry, getJarFileURL, getMainAttributes, getManifest- Methods inherited from class java.net.URLConnection- addRequestProperty, getAllowUserInteraction, getConnectTimeout, getContent, getContent, getContentEncoding, getContentLength, getContentLengthLong, getContentType, getDate, getDefaultAllowUserInteraction, getDefaultRequestProperty, getDefaultUseCaches, 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, setDefaultUseCaches, setDoInput, setDoOutput, setFileNameMap, setIfModifiedSince, setReadTimeout, setRequestProperty, setUseCaches, toString
- Constructor Details- MemoryJarURLConnectionCreates an MemoryJar URL connection.- Parameters:
- url- The requested URL.
- Throws:
- MalformedURLException
 
- MemoryJarURLConnectionCreates an MemoryJar URL connection.- Parameters:
- jarFile- The Jar file.
- Throws:
- MalformedURLException
 
 
- Method Details- getJarFileGets the IJarFile.- Specified by:
- getJarFilein class- AbstractJarURLConnection
- Returns:
- The IJarFile instance.
- See Also:
 
- connectOpens a communications link to the resource referenced by this URL, if such a connection has not already been established.- If the - connectmethod is called when the connection has already been opened (indicated by the- connectedfield having the value- true), the call is ignored.- Specified by:
- connectin class- URLConnection
- Throws:
- IOException- if an I/O error occurs while opening the connection.
 
- getInputStreamReturns an input stream that reads from this open connection.- Overrides:
- getInputStreamin class- URLConnection
- Returns:
- an input stream that reads from this open connection.
- Throws:
- IOException- if an I/O error occurs while creating the input stream.