Class ZipNumBlockLoader
java.lang.Object
org.archive.format.gzip.zipnum.ZipNumBlockLoader
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected intprotected Stringprotected Map<String, SeekableLineReaderFactory> protected HTTPSeekableLineReaderFactoryprotected Stringprotected intprotected intprotected booleanprotected intprotected intprotected intprotected HMACSignerprotected booleanprotected boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionattemptLoadBlock(String location, long startOffset, int totalLength, boolean decompress, boolean isRequired) voidclose()static voidvoidcloseFileFactory(String filename) createBlockReader(String uri) intprotected SeekableLineReadergetFileReader(String filename) protected HTTPSeekableLineReadergetHttpReader(String url) intintintintintbooleanbooleanbooleanbooleanisUseNio()voidsetBufferFully(boolean bufferFully) voidsetConnectTimeoutMS(int connectTimeoutMS) voidvoidsetHttpLib(String httpLib) voidsetMaxHostConnections(int maxHostConnections) voidsetMaxTotalConnections(int maxTotalConnections) voidsetNoKeepAlive(boolean noKeepAlive) voidsetNumRetries(int numRetries) voidsetReadTimeoutMS(int readTimeoutMS) voidsetSignDurationSecs(int signDurationSecs) voidsetSigner(HMACSigner signer) voidsetStaleChecking(boolean staleChecking) voidsetUseNio(boolean useNio)
-
Field Details
-
fileFactoryMap
-
httpFactory
-
signer
-
signDurationSecs
protected int signDurationSecs -
useNio
protected boolean useNio -
httpLib
-
bufferFully
protected boolean bufferFully -
noKeepAlive
protected boolean noKeepAlive -
cookie
-
maxHostConnections
protected int maxHostConnections -
maxTotalConnections
protected int maxTotalConnections -
connectTimeoutMS
protected int connectTimeoutMS -
readTimeoutMS
protected int readTimeoutMS -
numRetries
protected int numRetries -
staleChecking
protected boolean staleChecking
-
-
Constructor Details
-
ZipNumBlockLoader
public ZipNumBlockLoader()
-
-
Method Details
-
closeAllReaders
public static void closeAllReaders() -
createBlockReader
- Throws:
IOException
-
getHttpReader
- Throws:
IOException
-
getFileReader
- Throws:
IOException
-
attemptLoadBlock
public SeekableLineReader attemptLoadBlock(String location, long startOffset, int totalLength, boolean decompress, boolean isRequired) -
closeFileFactory
- Throws:
IOException
-
close
- Throws:
IOException
-
isUseNio
public boolean isUseNio() -
setUseNio
public void setUseNio(boolean useNio) -
isBufferFully
public boolean isBufferFully() -
setBufferFully
public void setBufferFully(boolean bufferFully) -
isNoKeepAlive
public boolean isNoKeepAlive() -
setNoKeepAlive
public void setNoKeepAlive(boolean noKeepAlive) -
getMaxHostConnections
public int getMaxHostConnections() -
setMaxHostConnections
public void setMaxHostConnections(int maxHostConnections) -
getMaxTotalConnections
public int getMaxTotalConnections() -
setMaxTotalConnections
public void setMaxTotalConnections(int maxTotalConnections) -
getConnectTimeoutMS
public int getConnectTimeoutMS() -
setConnectTimeoutMS
public void setConnectTimeoutMS(int connectTimeoutMS) -
getReadTimeoutMS
public int getReadTimeoutMS() -
setReadTimeoutMS
public void setReadTimeoutMS(int readTimeoutMS) -
getNumRetries
public int getNumRetries() -
setNumRetries
public void setNumRetries(int numRetries) -
setStaleChecking
public void setStaleChecking(boolean staleChecking) -
isStaleChecking
public boolean isStaleChecking() -
getHttpLib
-
setHttpLib
-
getCookie
-
setCookie
-
getSigner
-
setSigner
-
getSignDurationSecs
public int getSignDurationSecs() -
setSignDurationSecs
public void setSignDurationSecs(int signDurationSecs)
-