|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.net.URLConnection
java.net.JarURLConnection
org.apache.commons.vfs.provider.jar.JarURLConnectionImpl
public class JarURLConnectionImpl
A default URL connection that will work for most file systems.
| Field Summary | |
|---|---|
private FileContent |
content
|
private java.lang.String |
entryName
|
private JarFileObject |
file
|
private static java.lang.String |
HACK_URL
|
private java.net.URL |
parentURL
|
| Fields inherited from class java.net.JarURLConnection |
|---|
jarFileURLConnection |
| Fields inherited from class java.net.URLConnection |
|---|
allowUserInteraction, connected, doInput, doOutput, ifModifiedSince, url, useCaches |
| Constructor Summary | |
|---|---|
JarURLConnectionImpl(JarFileObject file,
FileContent content)
|
|
| Method Summary | |
|---|---|
void |
connect()
|
java.util.jar.Attributes |
getAttributes()
|
java.security.cert.Certificate[] |
getCertificates()
|
int |
getContentLength()
|
java.lang.String |
getEntryName()
|
java.io.InputStream |
getInputStream()
|
java.util.jar.JarEntry |
getJarEntry()
|
java.util.jar.JarFile |
getJarFile()
|
java.net.URL |
getJarFileURL()
|
java.util.jar.Manifest |
getManifest()
|
java.io.OutputStream |
getOutputStream()
|
| Methods inherited from class java.net.JarURLConnection |
|---|
getMainAttributes |
| Methods inherited from class java.net.URLConnection |
|---|
addRequestProperty, getAllowUserInteraction, getConnectTimeout, getContent, getContent, getContentEncoding, getContentType, getDate, getDefaultAllowUserInteraction, getDefaultRequestProperty, getDefaultUseCaches, getDoInput, getDoOutput, getExpiration, getFileNameMap, getHeaderField, getHeaderField, getHeaderFieldDate, getHeaderFieldInt, getHeaderFieldKey, 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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private static final java.lang.String HACK_URL
private FileContent content
private java.net.URL parentURL
private JarFileObject file
private java.lang.String entryName
| Constructor Detail |
|---|
public JarURLConnectionImpl(JarFileObject file,
FileContent content)
throws java.net.MalformedURLException,
FileSystemException
java.net.MalformedURLException
FileSystemException| Method Detail |
|---|
public java.net.URL getJarFileURL()
getJarFileURL in class java.net.JarURLConnectionpublic java.lang.String getEntryName()
getEntryName in class java.net.JarURLConnection
public java.util.jar.JarFile getJarFile()
throws java.io.IOException
getJarFile in class java.net.JarURLConnectionjava.io.IOException
public java.util.jar.Manifest getManifest()
throws java.io.IOException
getManifest in class java.net.JarURLConnectionjava.io.IOException
public java.util.jar.JarEntry getJarEntry()
throws java.io.IOException
getJarEntry in class java.net.JarURLConnectionjava.io.IOException
public java.util.jar.Attributes getAttributes()
throws java.io.IOException
getAttributes in class java.net.JarURLConnectionjava.io.IOExceptionpublic java.security.cert.Certificate[] getCertificates()
getCertificates in class java.net.JarURLConnectionpublic void connect()
connect in class java.net.URLConnection
public java.io.InputStream getInputStream()
throws java.io.IOException
getInputStream in class java.net.URLConnectionjava.io.IOException
public java.io.OutputStream getOutputStream()
throws java.io.IOException
getOutputStream in class java.net.URLConnectionjava.io.IOExceptionpublic int getContentLength()
getContentLength in class java.net.URLConnection
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||