org.apache.commons.vfs2.provider
Class DefaultURLConnection
java.lang.Object
java.net.URLConnection
org.apache.commons.vfs2.provider.DefaultURLConnection
public final class DefaultURLConnection
- extends URLConnection
A default URL connection that will work for most file systems.
- Author:
- Commons VFS team
Methods inherited from class java.net.URLConnection |
addRequestProperty, getAllowUserInteraction, getConnectTimeout, getContent, getContent, getDate, getDefaultAllowUserInteraction, getDefaultRequestProperty, getDefaultUseCaches, getDoInput, getDoOutput, getExpiration, getFileNameMap, getHeaderField, getHeaderField, getHeaderFieldDate, getHeaderFieldInt, getHeaderFieldKey, getHeaderFields, getIfModifiedSince, getPermission, getReadTimeout, getRequestProperties, getRequestProperty, getURL, getUseCaches, guessContentTypeFromName, guessContentTypeFromStream, setAllowUserInteraction, setConnectTimeout, setContentHandlerFactory, setDefaultAllowUserInteraction, setDefaultRequestProperty, setDefaultUseCaches, setDoInput, setDoOutput, setFileNameMap, setIfModifiedSince, setReadTimeout, setRequestProperty, setUseCaches, toString |
DefaultURLConnection
public DefaultURLConnection(URL url,
FileContent content)
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
getLastModified
public long getLastModified()
- Overrides:
getLastModified
in class URLConnection
getContentLength
public int getContentLength()
- Overrides:
getContentLength
in class URLConnection
getContentType
public String getContentType()
- Overrides:
getContentType
in class URLConnection
getContentEncoding
public String getContentEncoding()
- Overrides:
getContentEncoding
in class URLConnection
Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.