org.apache.commons.vfs.provider
Class DefaultURLConnection

java.lang.Object
  extended byjava.net.URLConnection
      extended byorg.apache.commons.vfs.provider.DefaultURLConnection

public final class DefaultURLConnection
extends URLConnection

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

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

Field Summary
 
Fields inherited from class java.net.URLConnection
allowUserInteraction, connected, doInput, doOutput, ifModifiedSince, url, useCaches
 
Constructor Summary
DefaultURLConnection(URL url, FileContent content)
           
 
Method Summary
 void connect()
           
 String getContentEncoding()
           
 int getContentLength()
           
 String getContentType()
           
 InputStream getInputStream()
           
 long getLastModified()
           
 OutputStream getOutputStream()
           
 
Methods inherited from class java.net.URLConnection
addRequestProperty, getAllowUserInteraction, getContent, getContent, getDate, getDefaultAllowUserInteraction, getDefaultRequestProperty, getDefaultUseCaches, getDoInput, getDoOutput, getExpiration, getFileNameMap, getHeaderField, getHeaderField, getHeaderFieldDate, getHeaderFieldInt, getHeaderFieldKey, getHeaderFields, getIfModifiedSince, getPermission, getRequestProperties, getRequestProperty, getURL, getUseCaches, guessContentTypeFromName, guessContentTypeFromStream, setAllowUserInteraction, setContentHandlerFactory, setDefaultAllowUserInteraction, setDefaultRequestProperty, setDefaultUseCaches, setDoInput, setDoOutput, setFileNameMap, setIfModifiedSince, setRequestProperty, setUseCaches, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultURLConnection

public DefaultURLConnection(URL url,
                            FileContent content)
Method Detail

connect

public void connect()

getInputStream

public InputStream getInputStream()
                           throws IOException
Throws:
IOException

getOutputStream

public OutputStream getOutputStream()
                             throws IOException
Throws:
IOException

getLastModified

public long getLastModified()

getContentLength

public int getContentLength()

getContentType

public String getContentType()

getContentEncoding

public String getContentEncoding()


Copyright © 2002-2006 The Apache Software Foundation. All Rights Reserved.