org.apache.commons.vfs.provider.jar
Class JarURLConnectionImpl

java.lang.Object
  extended by java.net.URLConnection
      extended by java.net.JarURLConnection
          extended by org.apache.commons.vfs.provider.jar.JarURLConnectionImpl

public class JarURLConnectionImpl
extends java.net.JarURLConnection

A default URL connection that will work for most file systems.

Version:
$Revision: 480428 $ $Date: 2006-11-29 07:15:24 +0100 (Wed, 29 Nov 2006) $
Author:
Brian Olsen

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
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
 

Constructor Detail

JarURLConnectionImpl

public JarURLConnectionImpl(JarFileObject file,
                            FileContent content)
                     throws java.net.MalformedURLException,
                            FileSystemException
Throws:
java.net.MalformedURLException
FileSystemException
Method Detail

getJarFileURL

public java.net.URL getJarFileURL()
Overrides:
getJarFileURL in class java.net.JarURLConnection

getEntryName

public java.lang.String getEntryName()
Overrides:
getEntryName in class java.net.JarURLConnection

getJarFile

public java.util.jar.JarFile getJarFile()
                                 throws java.io.IOException
Specified by:
getJarFile in class java.net.JarURLConnection
Throws:
java.io.IOException

getManifest

public java.util.jar.Manifest getManifest()
                                   throws java.io.IOException
Overrides:
getManifest in class java.net.JarURLConnection
Throws:
java.io.IOException

getJarEntry

public java.util.jar.JarEntry getJarEntry()
                                   throws java.io.IOException
Overrides:
getJarEntry in class java.net.JarURLConnection
Throws:
java.io.IOException

getAttributes

public java.util.jar.Attributes getAttributes()
                                       throws java.io.IOException
Overrides:
getAttributes in class java.net.JarURLConnection
Throws:
java.io.IOException

getCertificates

public java.security.cert.Certificate[] getCertificates()
Overrides:
getCertificates in class java.net.JarURLConnection

connect

public void connect()
Specified by:
connect in class java.net.URLConnection

getInputStream

public java.io.InputStream getInputStream()
                                   throws java.io.IOException
Overrides:
getInputStream in class java.net.URLConnection
Throws:
java.io.IOException

getOutputStream

public java.io.OutputStream getOutputStream()
                                     throws java.io.IOException
Overrides:
getOutputStream in class java.net.URLConnection
Throws:
java.io.IOException

getContentLength

public int getContentLength()
Overrides:
getContentLength in class java.net.URLConnection