public abstract class DownloadURLConnection extends URLConnection
allowUserInteraction, connected, doInput, doOutput, ifModifiedSince, url, useCaches| Modifier | Constructor and Description |
|---|---|
protected |
DownloadURLConnection(URL u) |
| Modifier and Type | Method and Description |
|---|---|
void |
connect()
Do script copy to local file.
|
protected String[] |
getCommand(URL thisUrl,
File downloadFile) |
File |
getFile() |
InputStream |
getInputStream() |
protected String |
getScript() |
protected void |
setFile(File f) |
addRequestProperty, getAllowUserInteraction, getConnectTimeout, getContent, getContent, getContentEncoding, getContentLength, getContentLengthLong, getContentType, getDate, getDefaultAllowUserInteraction, getDefaultRequestProperty, getDefaultUseCaches, getDoInput, getDoOutput, getExpiration, getFileNameMap, getHeaderField, getHeaderField, getHeaderFieldDate, getHeaderFieldInt, getHeaderFieldKey, getHeaderFieldLong, getHeaderFields, getIfModifiedSince, getLastModified, getOutputStream, getPermission, getReadTimeout, getRequestProperties, getRequestProperty, getURL, getUseCaches, guessContentTypeFromName, guessContentTypeFromStream, setAllowUserInteraction, setConnectTimeout, setContentHandlerFactory, setDefaultAllowUserInteraction, setDefaultRequestProperty, setDefaultUseCaches, setDoInput, setDoOutput, setFileNameMap, setIfModifiedSince, setReadTimeout, setRequestProperty, setUseCaches, toStringprotected DownloadURLConnection(URL u)
protected String getScript()
public void connect()
throws IOException
getFile().connect in class URLConnectionIOExceptionpublic File getFile()
protected void setFile(File f)
public InputStream getInputStream() throws IOException
getInputStream in class URLConnectionIOExceptionCopyright © 2015 The International Internet Preservation Consortium. All Rights Reserved.