com.github.axet.wget.info
Class URLInfo
java.lang.Object
com.github.axet.wget.info.URLInfo
- Direct Known Subclasses:
- DownloadInfo
public class URLInfo
- extends Object
URLInfo - keep all information about source in one place. Thread safe.
- Author:
- axet
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
URLInfo
public URLInfo(URL source)
extract
public void extract()
extract
public void extract(AtomicBoolean stop,
Runnable notify)
empty
public boolean empty()
extractRange
protected HttpURLConnection extractRange()
throws IOException
- Throws:
IOException
extractNormal
protected HttpURLConnection extractNormal()
throws IOException
- Throws:
IOException
getContentType
public String getContentType()
getLength
public Long getLength()
getSource
public URL getSource()
getContentFilename
public String getContentFilename()
getState
public URLInfo.States getState()
setState
public void setState(URLInfo.States state)
setState
public void setState(URLInfo.States state,
Throwable e)
getException
public Throwable getException()
setException
protected void setException(Throwable exception)
getDelay
public int getDelay()
setDelay
public void setDelay(int delay,
Throwable e)
getRange
public boolean getRange()
setRange
public void setRange(boolean range)
Copyright © 2012. All Rights Reserved.