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 JarURLConnection

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

Version:
$Revision: 764356 $ $Date: 2009-04-13 06:06:01 +0200(lun, 13 apr 2009) $
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()
           
 Attributes getAttributes()
           
 Certificate[] getCertificates()
           
 int getContentLength()
           
 String getEntryName()
           
 InputStream getInputStream()
           
 JarEntry getJarEntry()
           
 JarFile getJarFile()
           
 URL getJarFileURL()
           
 Manifest getManifest()
           
 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 MalformedURLException,
                            FileSystemException
Throws:
MalformedURLException
FileSystemException
Method Detail

getJarFileURL

public URL getJarFileURL()
Overrides:
getJarFileURL in class JarURLConnection

getEntryName

public String getEntryName()
Overrides:
getEntryName in class JarURLConnection

getJarFile

public JarFile getJarFile()
                   throws IOException
Specified by:
getJarFile in class JarURLConnection
Throws:
IOException

getManifest

public Manifest getManifest()
                     throws IOException
Overrides:
getManifest in class JarURLConnection
Throws:
IOException

getJarEntry

public JarEntry getJarEntry()
                     throws IOException
Overrides:
getJarEntry in class JarURLConnection
Throws:
IOException

getAttributes

public Attributes getAttributes()
                         throws IOException
Overrides:
getAttributes in class JarURLConnection
Throws:
IOException

getCertificates

public Certificate[] getCertificates()
Overrides:
getCertificates in class JarURLConnection

connect

public void connect()
Specified by:
connect in class URLConnection

getInputStream

public InputStream getInputStream()
                           throws IOException
Overrides:
getInputStream in class URLConnection
Throws:
IOException

getOutputStream

public OutputStream getOutputStream()
                             throws IOException
Overrides:
getOutputStream in class URLConnection
Throws:
IOException

getContentLength

public int getContentLength()
Overrides:
getContentLength in class URLConnection


Copyright © 2002-2011 Apache Software Foundation. All Rights Reserved.