public class LocalFileBlockLoader extends Object implements BlockLoader
Constructor and Description |
---|
LocalFileBlockLoader() |
Modifier and Type | Method and Description |
---|---|
byte[] |
getBlock(String url,
long offset,
int length)
Fetch a range of bytes from a particular URL.
|
public byte[] getBlock(String url, long offset, int length) throws IOException
BlockLoader
getBlock
in interface BlockLoader
url
- String URL to fetchoffset
- byte start offset of the desired rangelength
- number of octets to fetchIOException
- on Network and protocol failures, as well as TimeoutsCopyright © 2005–2017 IIPC. All rights reserved.