Package org.apache.commons.vfs2.provider
Class DefaultURLConnection
- java.lang.Object
-
- java.net.URLConnection
-
- org.apache.commons.vfs2.provider.DefaultURLConnection
-
public final class DefaultURLConnection extends java.net.URLConnection
A default URL connection that will work for most file systems.
-
-
Constructor Summary
Constructors Constructor Description DefaultURLConnection(java.net.URL url, FileContent content)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
connect()
java.lang.String
getContentEncoding()
int
getContentLength()
java.lang.String
getContentType()
java.io.InputStream
getInputStream()
long
getLastModified()
java.io.OutputStream
getOutputStream()
-
Methods inherited from class java.net.URLConnection
addRequestProperty, getAllowUserInteraction, getConnectTimeout, getContent, getContent, getContentLengthLong, getDate, getDefaultAllowUserInteraction, getDefaultRequestProperty, getDefaultUseCaches, getDefaultUseCaches, getDoInput, getDoOutput, getExpiration, getFileNameMap, getHeaderField, getHeaderField, getHeaderFieldDate, getHeaderFieldInt, getHeaderFieldKey, getHeaderFieldLong, getHeaderFields, getIfModifiedSince, getPermission, getReadTimeout, getRequestProperties, getRequestProperty, getURL, getUseCaches, guessContentTypeFromName, guessContentTypeFromStream, setAllowUserInteraction, setConnectTimeout, setContentHandlerFactory, setDefaultAllowUserInteraction, setDefaultRequestProperty, setDefaultUseCaches, setDefaultUseCaches, setDoInput, setDoOutput, setFileNameMap, setIfModifiedSince, setReadTimeout, setRequestProperty, setUseCaches, toString
-
-
-
-
Constructor Detail
-
DefaultURLConnection
public DefaultURLConnection(java.net.URL url, FileContent content)
-
-
Method Detail
-
connect
public void connect()
- Specified by:
connect
in classjava.net.URLConnection
-
getInputStream
public java.io.InputStream getInputStream() throws java.io.IOException
- Overrides:
getInputStream
in classjava.net.URLConnection
- Throws:
java.io.IOException
-
getOutputStream
public java.io.OutputStream getOutputStream() throws java.io.IOException
- Overrides:
getOutputStream
in classjava.net.URLConnection
- Throws:
java.io.IOException
-
getLastModified
public long getLastModified()
- Overrides:
getLastModified
in classjava.net.URLConnection
-
getContentLength
public int getContentLength()
- Overrides:
getContentLength
in classjava.net.URLConnection
-
getContentType
public java.lang.String getContentType()
- Overrides:
getContentType
in classjava.net.URLConnection
-
getContentEncoding
public java.lang.String getContentEncoding()
- Overrides:
getContentEncoding
in classjava.net.URLConnection
-
-