Tabnine Logo
SeekableLineReaderIterator.close
Code IndexAdd Tabnine to your IDE (free)

How to use
close
method
in
org.archive.util.binsearch.SeekableLineReaderIterator

Best Java code snippets using org.archive.util.binsearch.SeekableLineReaderIterator.close (Showing top 5 results out of 315)

origin: iipc/openwayback

public void loadParamFile() throws IOException {
  SeekableLineReaderFactory fact = null;
  SeekableLineReaderIterator iter = null;
  try {
    fact = GeneralURIStreamFactory.createSeekableStreamFactory(
      paramFile, false);
    iter = new SeekableLineReaderIterator(fact.get());
    paramSet = new HashSet<String>();
    while (iter.hasNext()) {
      String param = iter.next();
      param = param.trim();
      if (param.isEmpty() || param.startsWith("#")) {
        continue;
      }
      // Use only the first word, ignore the rest
      int wordEnd = param.indexOf(delim);
      if (wordEnd > 0) {
        param = param.substring(0, wordEnd);
      }
      paramSet.add(param);
    }
  } finally {
    if (iter != null) {
      iter.close();
    }
    if (fact != null) {
      fact.close();
    }
  }
}
origin: org.netpreserve.openwayback/openwayback-cdx-server

public void loadParamFile() throws IOException {
  SeekableLineReaderFactory fact = null;
  SeekableLineReaderIterator iter = null;
  try {
    fact = GeneralURIStreamFactory.createSeekableStreamFactory(
      paramFile, false);
    iter = new SeekableLineReaderIterator(fact.get());
    paramSet = new HashSet<String>();
    while (iter.hasNext()) {
      String param = iter.next();
      param = param.trim();
      if (param.isEmpty() || param.startsWith("#")) {
        continue;
      }
      // Use only the first word, ignore the rest
      int wordEnd = param.indexOf(delim);
      if (wordEnd > 0) {
        param = param.substring(0, wordEnd);
      }
      paramSet.add(param);
    }
  } finally {
    if (iter != null) {
      iter.close();
    }
    if (fact != null) {
      fact.close();
    }
  }
}
origin: org.netpreserve.commons/webarchive-commons

lines.close();
origin: iipc/webarchive-commons

lines.close();
origin: org.netpreserve.commons/commons-web

lines.close();
org.archive.util.binsearchSeekableLineReaderIteratorclose

Popular methods of SeekableLineReaderIterator

  • <init>
  • hasNext
  • next

Popular in Java

  • Reactive rest calls using spring rest template
  • getResourceAsStream (ClassLoader)
  • getApplicationContext (Context)
  • setContentView (Activity)
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now