congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
SeekableLineReaderIterator.next
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: org.netpreserve.commons/commons-web

public String next() {
  if(first != null) {
    String tmp = first;
    first = null;
    return tmp;
  }
  if(second != null) {
    String tmp = second;
    second = null;
    return tmp;
  }
  if (it == null) {
    return null;
  }            
  return it.next();
}
origin: org.netpreserve.commons/webarchive-commons

public String next() {
  if(first != null) {
    String tmp = first;
    first = null;
    return tmp;
  }
  if(second != null) {
    String tmp = second;
    second = null;
    return tmp;
  }
  if (it == null) {
    return null;
  }            
  return it.next();
}
origin: iipc/webarchive-commons

public String next() {
  if(first != null) {
    String tmp = first;
    first = null;
    return tmp;
  }
  if(second != null) {
    String tmp = second;
    second = null;
    return tmp;
  }
  if (it == null) {
    return null;
  }            
  return it.next();
}
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

String line = lines.next();
origin: org.netpreserve.commons/commons-web

String line = lines.next();
origin: iipc/webarchive-commons

String line = lines.next();
org.archive.util.binsearchSeekableLineReaderIteratornext

Popular methods of SeekableLineReaderIterator

  • <init>
  • close
  • hasNext

Popular in Java

  • Making http requests using okhttp
  • setScale (BigDecimal)
  • scheduleAtFixedRate (Timer)
  • runOnUiThread (Activity)
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • Top 17 Free Sublime Text Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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