public class GenericBlockLoader extends Object implements BlockLoader
| Constructor and Description |
|---|
GenericBlockLoader() |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getBlock(String url,
long offset,
int length)
Fetch a range of bytes from a particular URL.
|
int |
getMaxHostConnections() |
int |
getMaxTotalConnections() |
void |
init() |
void |
setDefaultFSURI(String uri) |
void |
setMaxHostConnections(int maxHostConnections) |
void |
setMaxTotalConnections(int maxTotalConnections) |
public void init()
public byte[] getBlock(String url, long offset, int length) throws IOException
BlockLoadergetBlock in interface BlockLoaderurl - String URL to fetchoffset - byte start offset of the desired rangelength - number of octets to fetchIOException - on Network and protocol failures, as well as Timeoutspublic void setDefaultFSURI(String uri)
public int getMaxTotalConnections()
public void setMaxTotalConnections(int maxTotalConnections)
public int getMaxHostConnections()
public void setMaxHostConnections(int maxHostConnections)
Copyright © 2005–2015 IIPC. All rights reserved.