public class FileToDownload
extends java.lang.Object
| Constructor and Description |
|---|
FileToDownload(java.net.URL url) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
asByteArray() |
java.lang.String |
asString() |
static FileToDownload |
fromUrl(java.net.URL url) |
public static FileToDownload fromUrl(java.net.URL url)
public byte[] asByteArray()
throws java.io.IOException
java.io.IOExceptionpublic java.lang.String asString()
throws java.io.IOException
java.io.IOException