org.archive.wayback.resourceindex.cdx
Class SearchResultToCDXLineAdapter

java.lang.Object
  extended by org.archive.wayback.resourceindex.cdx.SearchResultToCDXLineAdapter
All Implemented Interfaces:
Adapter<CaptureSearchResult,String>

public class SearchResultToCDXLineAdapter
extends Object
implements Adapter<CaptureSearchResult,String>

Version:
$Date: 2010-09-29 05:28:38 +0700 (Wed, 29 Sep 2010) $, $Revision: 3262 $
Author:
brad

Constructor Summary
SearchResultToCDXLineAdapter()
           
 
Method Summary
 String adapt(CaptureSearchResult result)
          Transform one object into another
static Iterator<String> adapt(Iterator<CaptureSearchResult> input)
           
static Iterator<String> adapt(Iterator<CaptureSearchResult> input, boolean isOutputRobot)
           
 boolean isOutputRobot()
           
 void setIsOutputRobot(boolean isOutputRobot)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SearchResultToCDXLineAdapter

public SearchResultToCDXLineAdapter()
Method Detail

isOutputRobot

public boolean isOutputRobot()

setIsOutputRobot

public void setIsOutputRobot(boolean isOutputRobot)

adapt

public String adapt(CaptureSearchResult result)
Description copied from interface: Adapter
Transform one object into another

Specified by:
adapt in interface Adapter<CaptureSearchResult,String>
Returns:
new object that is adapted from the old

adapt

public static Iterator<String> adapt(Iterator<CaptureSearchResult> input)

adapt

public static Iterator<String> adapt(Iterator<CaptureSearchResult> input,
                                     boolean isOutputRobot)


Copyright © 2005-2011 Internet Archive. All Rights Reserved.