Class JarURLConnectionImpl
java.lang.Object
java.net.URLConnection
java.net.JarURLConnection
org.apache.commons.vfs2.provider.jar.JarURLConnectionImpl
A default URL connection that will work for most file systems.
- 
Field SummaryFields inherited from class java.net.JarURLConnectionjarFileURLConnectionFields inherited from class java.net.URLConnectionallowUserInteraction, connected, doInput, doOutput, ifModifiedSince, url, useCaches
- 
Constructor SummaryConstructorsConstructorDescriptionJarURLConnectionImpl(JarFileObject jarFileObject, FileContent fileContent) Constructs a new instance.
- 
Method SummaryMethods inherited from class java.net.JarURLConnectiongetMainAttributesMethods inherited from class java.net.URLConnectionaddRequestProperty, getAllowUserInteraction, getConnectTimeout, getContent, getContent, getContentEncoding, getContentLengthLong, getContentType, getDate, getDefaultAllowUserInteraction, getDefaultRequestProperty, getDefaultUseCaches, getDoInput, getDoOutput, getExpiration, getFileNameMap, getHeaderField, getHeaderField, getHeaderFieldDate, getHeaderFieldInt, getHeaderFieldKey, getHeaderFieldLong, getHeaderFields, getIfModifiedSince, getLastModified, getPermission, getReadTimeout, getRequestProperties, getRequestProperty, getURL, getUseCaches, guessContentTypeFromName, guessContentTypeFromStream, setAllowUserInteraction, setConnectTimeout, setContentHandlerFactory, setDefaultAllowUserInteraction, setDefaultRequestProperty, setDefaultUseCaches, setDoInput, setDoOutput, setFileNameMap, setIfModifiedSince, setReadTimeout, setRequestProperty, setUseCaches, toString
- 
Constructor Details- 
JarURLConnectionImplpublic JarURLConnectionImpl(JarFileObject jarFileObject, FileContent fileContent) throws MalformedURLException, FileSystemException Constructs a new instance.- Parameters:
- jarFileObject- The JAR file.
- fileContent- THe JAR file contents.
- Throws:
- MalformedURLException- Should not happen.
- FileSystemException- if an error occurs accessing the JAR file.
 
 
- 
- 
Method Details- 
connect- Specified by:
- connectin class- URLConnection
 
- 
getAttributes- Overrides:
- getAttributesin class- JarURLConnection
- Throws:
- IOException
 
- 
getCertificates- Overrides:
- getCertificatesin class- JarURLConnection
 
- 
getContentLength- Overrides:
- getContentLengthin class- URLConnection
 
- 
getEntryName- Overrides:
- getEntryNamein class- JarURLConnection
 
- 
getInputStream- Overrides:
- getInputStreamin class- URLConnection
- Throws:
- IOException
 
- 
getJarEntry- Overrides:
- getJarEntryin class- JarURLConnection
- Throws:
- IOException
 
- 
getJarFile- Specified by:
- getJarFilein class- JarURLConnection
- Throws:
- IOException
 
- 
getJarFileURL- Overrides:
- getJarFileURLin class- JarURLConnection
 
- 
getManifest- Overrides:
- getManifestin class- JarURLConnection
- Throws:
- IOException
 
- 
getOutputStream- Overrides:
- getOutputStreamin class- URLConnection
- Throws:
- IOException
 
 
-