Class DownloadURLConnection
java.lang.Object
java.net.URLConnection
org.archive.net.DownloadURLConnection
- Direct Known Subclasses:
Md5URLConnection,RsyncURLConnection
An URL Connection that pre-downloads URL reference before passing back a
Stream reference. When closed, it removes the local download file.
- Version:
- $Date$, $Revision$
- Author:
- stack
-
Field Summary
Fields inherited from class java.net.URLConnection
allowUserInteraction, connected, doInput, doOutput, ifModifiedSince, url, useCaches -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.net.URLConnection
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, toString
-
Constructor Details
-
DownloadURLConnection
-
-
Method Details
-
getScript
-
getCommand
-
connect
Do script copy to local file. File is available viagetFile().- Specified by:
connectin classURLConnection- Throws:
IOException
-
getFile
-
setFile
-
getInputStream
- Overrides:
getInputStreamin classURLConnection- Throws:
IOException
-