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 Summary
Fields inherited from class java.net.JarURLConnection
jarFileURLConnection
Fields inherited from class java.net.URLConnection
allowUserInteraction, connected, doInput, doOutput, ifModifiedSince, url, useCaches
-
Constructor Summary
ConstructorsConstructorDescriptionJarURLConnectionImpl
(JarFileObject jarFileObject, FileContent fileContent) Constructs a new instance. -
Method Summary
Methods inherited from class java.net.JarURLConnection
getMainAttributes
Methods inherited from class java.net.URLConnection
addRequestProperty, 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
-
JarURLConnectionImpl
public 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:
connect
in classURLConnection
-
getAttributes
- Overrides:
getAttributes
in classJarURLConnection
- Throws:
IOException
-
getCertificates
- Overrides:
getCertificates
in classJarURLConnection
-
getContentLength
- Overrides:
getContentLength
in classURLConnection
-
getEntryName
- Overrides:
getEntryName
in classJarURLConnection
-
getInputStream
- Overrides:
getInputStream
in classURLConnection
- Throws:
IOException
-
getJarEntry
- Overrides:
getJarEntry
in classJarURLConnection
- Throws:
IOException
-
getJarFile
- Specified by:
getJarFile
in classJarURLConnection
- Throws:
IOException
-
getJarFileURL
- Overrides:
getJarFileURL
in classJarURLConnection
-
getManifest
- Overrides:
getManifest
in classJarURLConnection
- Throws:
IOException
-
getOutputStream
- Overrides:
getOutputStream
in classURLConnection
- Throws:
IOException
-