Constructor and Description |
---|
HTTPHelper(java.net.URL url) |
Modifier and Type | Method and Description |
---|---|
boolean |
exists() |
long |
getContentLength() |
java.net.URL |
getUrl() |
java.io.InputStream |
openInputStream()
Open an InputStream to stream the contents of the resource
|
java.io.InputStream |
openInputStreamForRange(long start,
long end)
Open an InputStream to stream a slice (range) of the resource.
|
static void |
setProxy(java.net.Proxy p) |
public static void setProxy(java.net.Proxy p)
public java.net.URL getUrl()
public long getContentLength() throws java.io.IOException
getContentLength
in interface URLHelper
java.io.IOException
public java.io.InputStream openInputStream() throws java.io.IOException
URLHelper
openInputStream
in interface URLHelper
java.io.IOException
public java.io.InputStream openInputStreamForRange(long start, long end) throws java.io.IOException
openInputStreamForRange
in interface URLHelper
start
- start of range in bytesend
- end of range ni bytesjava.io.IOException