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
jarFileURLConnectionFields 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
getMainAttributesMethods 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:
connectin classURLConnection
-
getAttributes
- Overrides:
getAttributesin classJarURLConnection- Throws:
IOException
-
getCertificates
- Overrides:
getCertificatesin classJarURLConnection
-
getContentLength
- Overrides:
getContentLengthin classURLConnection
-
getEntryName
- Overrides:
getEntryNamein classJarURLConnection
-
getInputStream
- Overrides:
getInputStreamin classURLConnection- Throws:
IOException
-
getJarEntry
- Overrides:
getJarEntryin classJarURLConnection- Throws:
IOException
-
getJarFile
- Specified by:
getJarFilein classJarURLConnection- Throws:
IOException
-
getJarFileURL
- Overrides:
getJarFileURLin classJarURLConnection
-
getManifest
- Overrides:
getManifestin classJarURLConnection- Throws:
IOException
-
getOutputStream
- Overrides:
getOutputStreamin classURLConnection- Throws:
IOException
-