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
FieldsModifier and TypeFieldDescriptionprivate final FileContent
private final String
private final JarFileObject
private static final String
private final URL
Fields inherited from class java.net.JarURLConnection
jarFileURLConnection
Fields inherited from class java.net.URLConnection
allowUserInteraction, connected, doInput, doOutput, ifModifiedSince, url, useCaches
-
Constructor Summary
Constructors -
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
-
Field Details
-
HACK_URL
- See Also:
-
-
parentURL
-
file
-
entryName
-
-
Constructor Details
-
JarURLConnectionImpl
public JarURLConnectionImpl(JarFileObject file, FileContent content) throws MalformedURLException, FileSystemException
-
-
Method Details
-
getJarFileURL
- Overrides:
getJarFileURL
in classJarURLConnection
-
getEntryName
- Overrides:
getEntryName
in classJarURLConnection
-
getJarFile
- Specified by:
getJarFile
in classJarURLConnection
- Throws:
IOException
-
getManifest
- Overrides:
getManifest
in classJarURLConnection
- Throws:
IOException
-
getJarEntry
- Overrides:
getJarEntry
in classJarURLConnection
- Throws:
IOException
-
getAttributes
- Overrides:
getAttributes
in classJarURLConnection
- Throws:
IOException
-
getCertificates
- Overrides:
getCertificates
in classJarURLConnection
-
connect
public void connect()- Specified by:
connect
in classURLConnection
-
getInputStream
- Overrides:
getInputStream
in classURLConnection
- Throws:
IOException
-
getOutputStream
- Overrides:
getOutputStream
in classURLConnection
- Throws:
IOException
-
getContentLength
public int getContentLength()- Overrides:
getContentLength
in classURLConnection
-