Package org.archive.wayback.util.flatfile

Examples of org.archive.wayback.util.flatfile.FlatFile


  }

  private boolean mergeFile(File cdxFile) {
    boolean added = false;
    try {
      FlatFile ffile = new FlatFile(cdxFile.getAbsolutePath());
      AdaptedIterator<String,CaptureSearchResult> searchResultItr =
        new AdaptedIterator<String,CaptureSearchResult>(
            ffile.getSequentialIterator(),
          new CDXLineToSearchResultAdapter());
      index.addSearchResults(searchResultItr);
      added = true;
    } catch (IOException e) {
      e.printStackTrace();
View Full Code Here


 
  // This method should be set as the init-method in the spring config
  // init-method="loadParamFile" when using this Filter
  public void loadParamFile()
  {
    FlatFile ff = new FlatFile(paramFile);
   
       
    CloseableIterator<String> itr = null;
   
    try {
      itr = ff.getSequentialIterator();
    } catch (IOException io) {
      LOGGER.warning(io.toString());
    }
   
    paramSet = new HashSet<String>();
View Full Code Here

TOP

Related Classes of org.archive.wayback.util.flatfile.FlatFile

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.