public final class DefaultURLConnection extends URLConnection
allowUserInteraction, connected, doInput, doOutput, ifModifiedSince, url, useCaches
Constructor and Description |
---|
DefaultURLConnection(URL url,
FileContent content) |
Modifier and Type | Method and Description |
---|---|
void |
connect() |
String |
getContentEncoding() |
int |
getContentLength() |
String |
getContentType() |
InputStream |
getInputStream() |
long |
getLastModified() |
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, toString
public DefaultURLConnection(URL url, FileContent content)
public void connect()
connect
in class URLConnection
public InputStream getInputStream() throws IOException
getInputStream
in class URLConnection
IOException
public OutputStream getOutputStream() throws IOException
getOutputStream
in class URLConnection
IOException
public long getLastModified()
getLastModified
in class URLConnection
public int getContentLength()
getContentLength
in class URLConnection
public String getContentType()
getContentType
in class URLConnection
public String getContentEncoding()
getContentEncoding
in class URLConnection
Copyright © 2002–2020 The Apache Software Foundation. All rights reserved.