public abstract class HTTPSeekableLineReaderFactory extends java.lang.Object implements SeekableLineReaderFactory
| Modifier and Type | Class and Description |
|---|---|
static class |
HTTPSeekableLineReaderFactory.HttpLibs |
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
defaultURL |
BINSEARCH_BLOCK_SIZE| Modifier | Constructor and Description |
|---|---|
protected |
HTTPSeekableLineReaderFactory() |
public abstract HTTPSeekableLineReader get(java.lang.String url) throws java.io.IOException
java.io.IOExceptionpublic static HTTPSeekableLineReaderFactory getHttpFactory()
public static HTTPSeekableLineReaderFactory getHttpFactory(HTTPSeekableLineReaderFactory.HttpLibs type)
public static HTTPSeekableLineReaderFactory getHttpFactory(java.lang.String defaultURL)
public static HTTPSeekableLineReaderFactory getHttpFactory(HTTPSeekableLineReaderFactory.HttpLibs type, java.lang.String defaultURL)
public HTTPSeekableLineReader get() throws java.io.IOException
get in interface SeekableLineReaderFactoryjava.io.IOExceptionpublic abstract void close()
throws java.io.IOException
close in interface SeekableLineReaderFactoryjava.io.IOExceptionpublic abstract void setProxyHostPort(java.lang.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 © 2019 The International Internet Preservation Consortium. All Rights Reserved.