public final class DefaultURLConnection
extends java.net.URLConnection
| Constructor and Description |
|---|
DefaultURLConnection(java.net.URL url,
FileContent content) |
| Modifier and Type | Method and Description |
|---|---|
void |
connect() |
java.lang.String |
getContentEncoding() |
int |
getContentLength() |
java.lang.String |
getContentType() |
java.io.InputStream |
getInputStream() |
long |
getLastModified() |
java.io.OutputStream |
getOutputStream() |
addRequestProperty, getAllowUserInteraction, getConnectTimeout, getContent, getContent, getContentLengthLong, getDate, getDefaultAllowUserInteraction, getDefaultRequestProperty, 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, setDoInput, setDoOutput, setFileNameMap, setIfModifiedSince, setReadTimeout, setRequestProperty, setUseCaches, toStringpublic DefaultURLConnection(java.net.URL url,
FileContent content)
public void connect()
connect in class java.net.URLConnectionpublic java.io.InputStream getInputStream()
throws java.io.IOException
getInputStream in class java.net.URLConnectionjava.io.IOExceptionpublic java.io.OutputStream getOutputStream()
throws java.io.IOException
getOutputStream in class java.net.URLConnectionjava.io.IOExceptionpublic long getLastModified()
getLastModified in class java.net.URLConnectionpublic int getContentLength()
getContentLength in class java.net.URLConnectionpublic java.lang.String getContentType()
getContentType in class java.net.URLConnectionpublic java.lang.String getContentEncoding()
getContentEncoding in class java.net.URLConnection