Class ZipNumBlockLoader

java.lang.Object
org.archive.format.gzip.zipnum.ZipNumBlockLoader

public class ZipNumBlockLoader extends Object
  • Field Details

    • fileFactoryMap

      protected Map<String, SeekableLineReaderFactory> fileFactoryMap
    • httpFactory

      protected HTTPSeekableLineReaderFactory httpFactory
    • signer

      protected HMACSigner signer
    • signDurationSecs

      protected int signDurationSecs
    • useNio

      protected boolean useNio
    • httpLib

      protected String httpLib
    • bufferFully

      protected boolean bufferFully
    • noKeepAlive

      protected boolean noKeepAlive
    • 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

      public SeekableLineReader createBlockReader(String uri) throws IOException
      Throws:
      IOException
    • getHttpReader

      protected HTTPSeekableLineReader getHttpReader(String url) throws IOException
      Throws:
      IOException
    • getFileReader

      protected SeekableLineReader getFileReader(String filename) throws IOException
      Throws:
      IOException
    • attemptLoadBlock

      public SeekableLineReader attemptLoadBlock(String location, long startOffset, int totalLength, boolean decompress, boolean isRequired)
    • closeFileFactory

      public void closeFileFactory(String filename) throws IOException
      Throws:
      IOException
    • close

      public void close() throws IOException
      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

      public String getHttpLib()
    • setHttpLib

      public void setHttpLib(String httpLib)
    • getCookie

      public String getCookie()
    • setCookie

      public void setCookie(String cookie)
    • getSigner

      public HMACSigner getSigner()
    • setSigner

      public void setSigner(HMACSigner signer)
    • getSignDurationSecs

      public int getSignDurationSecs()
    • setSignDurationSecs

      public void setSignDurationSecs(int signDurationSecs)