congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
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

  • Reading from database using SQL prepared statement
  • onRequestPermissionsResult (Fragment)
  • onCreateOptionsMenu (Activity)
  • requestLocationUpdates (LocationManager)
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • Best IntelliJ plugins
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