public abstract class HTTPSeekableLineReaderFactory extends Object implements SeekableLineReaderFactory
| Modifier and Type | Class and Description |
|---|---|
static class |
HTTPSeekableLineReaderFactory.HttpLibs |
| Modifier and Type | Field and Description |
|---|---|
protected String |
defaultURL |
BINSEARCH_BLOCK_SIZE| Modifier | Constructor and Description |
|---|---|
protected |
HTTPSeekableLineReaderFactory() |
protected String defaultURL
public abstract HTTPSeekableLineReader get(String url) throws IOException
IOExceptionpublic static HTTPSeekableLineReaderFactory getHttpFactory()
public static HTTPSeekableLineReaderFactory getHttpFactory(HTTPSeekableLineReaderFactory.HttpLibs type)
public static HTTPSeekableLineReaderFactory getHttpFactory(String defaultURL)
public static HTTPSeekableLineReaderFactory getHttpFactory(HTTPSeekableLineReaderFactory.HttpLibs type, String defaultURL)
public HTTPSeekableLineReader get() throws IOException
get in interface SeekableLineReaderFactoryIOExceptionpublic abstract void close()
throws IOException
close in interface SeekableLineReaderFactoryIOExceptionpublic abstract void setProxyHostPort(String hostPort)
hostPort - to proxy requests through - ex. "localhost:3128"public abstract void setMaxTotalConnections(int maxTotalConnections)
maxTotalConnections - the HttpConnectionManagerParams configpublic abstract int getMaxTotalConnections()
public abstract void setMaxHostConnections(int maxHostConnections)
maxHostConnections - the HttpConnectionManagerParams configpublic abstract int getMaxHostConnections()
public abstract int getConnectionTimeoutMS()
public abstract void setConnectionTimeoutMS(int connectionTimeoutMS)
connectionTimeoutMS - the connectionTimeoutMS to setpublic abstract int getSocketTimeoutMS()
public abstract void setSocketTimeoutMS(int socketTimeoutMS)
socketTimeoutMS - the socketTimeoutMS to setpublic abstract void setStaleChecking(boolean enabled)
public abstract boolean isStaleChecking()
public abstract long getModTime()
getModTime in interface SeekableLineReaderFactorypublic void reload()
reload in interface SeekableLineReaderFactorypublic abstract void setNumRetries(int numRetries)
Copyright © 2015 The International Internet Preservation Consortium. All Rights Reserved.