Constructor and Description |
---|
HTTPHelper(URL url) |
Modifier and Type | Method and Description |
---|---|
boolean |
exists() |
long |
getContentLength() |
URL |
getUrl() |
InputStream |
openInputStream() |
InputStream |
openInputStreamForRange(long start,
long end)
Deprecated.
|
static void |
setProxy(Proxy p) |
public HTTPHelper(URL url)
public static void setProxy(Proxy p)
public long getContentLength() throws IOException
getContentLength
in interface URLHelper
IOException
public InputStream openInputStream() throws IOException
openInputStream
in interface URLHelper
IOException
@Deprecated public InputStream openInputStreamForRange(long start, long end) throws IOException
openInputStreamForRange
in interface URLHelper
start
- start of range in bytesend
- end of range ni bytesIOException
public boolean exists() throws IOException
exists
in interface URLHelper
IOException