org.archive.format.gzip.zipnum.ZipNumBlockLoader Maven / Gradle / Ivy
The newest version!
package org.archive.format.gzip.zipnum;
import java.io.IOException;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import java.util.Map.Entry;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.archive.util.GeneralURIStreamFactory;
import org.archive.util.HMACSigner;
import org.archive.util.binsearch.SeekableLineReader;
import org.archive.util.binsearch.SeekableLineReaderFactory;
import org.archive.util.binsearch.impl.HTTPSeekableLineReader;
import org.archive.util.binsearch.impl.HTTPSeekableLineReaderFactory;
import org.archive.util.binsearch.impl.HTTPSeekableLineReaderFactory.HttpLibs;
import org.archive.util.io.RuntimeIOException;
public class ZipNumBlockLoader {
private final static Logger LOGGER = Logger.getLogger(ZipNumBlockLoader.class.getName());
protected Map fileFactoryMap = null;
protected HTTPSeekableLineReaderFactory httpFactory = null;
// Request signing
final static int DEFAULT_SIG_DURATION_SECS = 10;
protected HMACSigner signer;
protected int signDurationSecs = DEFAULT_SIG_DURATION_SECS;
protected boolean useNio = false;
protected String httpLib = HttpLibs.APACHE_31.name();
protected boolean bufferFully = true;
protected boolean noKeepAlive = true;
protected String cookie = null;
protected int maxHostConnections = 100000;
protected int maxTotalConnections = 100000;
protected int connectTimeoutMS = 10000;
protected int readTimeoutMS = 10000;
protected int numRetries = -1;
protected boolean staleChecking = false;
public ZipNumBlockLoader()
{
}
private static ThreadLocal
© 2015 - 2024 Weber Informatics LLC | Privacy Policy