|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.net.URLConnection org.archive.net.DownloadURLConnection
public abstract class DownloadURLConnection
An URL Connection that pre-downloads URL reference before passing back a Stream reference. When closed, it removes the local download file.
Field Summary |
---|
Fields inherited from class java.net.URLConnection |
---|
allowUserInteraction, connected, doInput, doOutput, ifModifiedSince, url, useCaches |
Constructor Summary | |
---|---|
protected |
DownloadURLConnection(java.net.URL u)
|
Method Summary | |
---|---|
void |
connect()
Do script copy to local file. |
protected java.lang.String[] |
getCommand(java.net.URL thisUrl,
java.io.File downloadFile)
|
java.io.File |
getFile()
|
java.io.InputStream |
getInputStream()
|
protected java.lang.String |
getScript()
|
protected void |
setFile(java.io.File f)
|
Methods inherited from class java.net.URLConnection |
---|
addRequestProperty, getAllowUserInteraction, getConnectTimeout, getContent, getContent, getContentEncoding, getContentLength, getContentType, getDate, getDefaultAllowUserInteraction, getDefaultRequestProperty, getDefaultUseCaches, getDoInput, getDoOutput, getExpiration, getFileNameMap, getHeaderField, getHeaderField, getHeaderFieldDate, getHeaderFieldInt, getHeaderFieldKey, 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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected DownloadURLConnection(java.net.URL u)
Method Detail |
---|
protected java.lang.String getScript()
protected java.lang.String[] getCommand(java.net.URL thisUrl, java.io.File downloadFile)
public void connect() throws java.io.IOException
getFile()
.
connect
in class java.net.URLConnection
java.io.IOException
public java.io.File getFile()
protected void setFile(java.io.File f)
public java.io.InputStream getInputStream() throws java.io.IOException
getInputStream
in class java.net.URLConnection
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |