Class WebInputStreamLoader
java.lang.Object
me.hsgamer.hscore.downloader.webstream.WebInputStreamLoader
- All Implemented Interfaces:
InputStreamLoader
A simple
InputStreamLoader
that downloads files from a web stream-
Constructor Summary
ConstructorDescriptionCreate a newWebInputStreamLoader
WebInputStreamLoader
(UserAgent userAgent) Create a newWebInputStreamLoader
-
Method Summary
Modifier and TypeMethodDescriptionload
(DownloadInfo downloadInfo) Load theInputStream
from theDownloadInfo
-
Constructor Details
-
WebInputStreamLoader
Create a newWebInputStreamLoader
- Parameters:
userAgent
- the user agent to use
-
WebInputStreamLoader
public WebInputStreamLoader()Create a newWebInputStreamLoader
-
-
Method Details
-
load
Description copied from interface:InputStreamLoader
Load theInputStream
from theDownloadInfo
- Specified by:
load
in interfaceInputStreamLoader
- Parameters:
downloadInfo
- theDownloadInfo
- Returns:
- the
InputStream
- Throws:
IOException
-