public class HttpDownloader
extends javax.swing.SwingWorker<java.lang.Object,java.lang.Void>
Constructor and Description |
---|
HttpDownloader(java.lang.String url,
boolean binary)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.Object |
doInBackground() |
byte[] |
getBinaryContent()
Retrieve binary content.
|
java.lang.String |
getTextContent()
Retrieve text content.
|
boolean |
isFinishedOk()
Whether file was downloaded ok, or there was some error (or still running)
|
public HttpDownloader(java.lang.String url, boolean binary)
url
- file urlbinary
- if file contents is binaryprotected java.lang.Object doInBackground()
doInBackground
in class javax.swing.SwingWorker<java.lang.Object,java.lang.Void>
public java.lang.String getTextContent()
public byte[] getBinaryContent()
public boolean isFinishedOk()