public final class DefaultURLConnection extends URLConnection
allowUserInteraction, connected, doInput, doOutput, ifModifiedSince, url, useCaches| Constructor and Description |
|---|
DefaultURLConnection(URL url,
FileContent fileContent)
Constructs a new instance.
|
| 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, toStringpublic DefaultURLConnection(URL url, FileContent fileContent)
url - The URL to connect.fileContent - The URL fileContent.public void connect()
connect in class URLConnectionpublic String getContentEncoding()
getContentEncoding in class URLConnectionpublic int getContentLength()
getContentLength in class URLConnectionpublic String getContentType()
getContentType in class URLConnectionpublic InputStream getInputStream() throws IOException
getInputStream in class URLConnectionIOExceptionpublic long getLastModified()
getLastModified in class URLConnectionpublic OutputStream getOutputStream() throws IOException
getOutputStream in class URLConnectionIOExceptionCopyright © 2002–2025 The Apache Software Foundation. All rights reserved.