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 FileContentprivate final Stringprivate final JarFileObjectprivate static final Stringprivate final URLFields inherited from class JarURLConnection
jarFileURLConnectionFields inherited from class URLConnection
allowUserInteraction, connected, doInput, doOutput, ifModifiedSince, url, useCaches -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class JarURLConnection
getMainAttributesMethods inherited from class 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:
getJarFileURLin classJarURLConnection
-
getEntryName
- Overrides:
getEntryNamein classJarURLConnection
-
getJarFile
- Specified by:
getJarFilein classJarURLConnection- Throws:
IOException
-
getManifest
- Overrides:
getManifestin classJarURLConnection- Throws:
IOException
-
getJarEntry
- Overrides:
getJarEntryin classJarURLConnection- Throws:
IOException
-
getAttributes
- Overrides:
getAttributesin classJarURLConnection- Throws:
IOException
-
getCertificates
- Overrides:
getCertificatesin classJarURLConnection
-
connect
public void connect()- Specified by:
connectin classURLConnection
-
getInputStream
- Overrides:
getInputStreamin classURLConnection- Throws:
IOException
-
getOutputStream
- Overrides:
getOutputStreamin classURLConnection- Throws:
IOException
-
getContentLength
public int getContentLength()- Overrides:
getContentLengthin classURLConnection
-