org.archive.wayback.resourceindex.cdx
Class CDXLineToSearchResultAdapter

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

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

Adapter that converts a CDX record String into a CaptureSearchResult

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

Constructor Summary
CDXLineToSearchResultAdapter()
           
 
Method Summary
 CaptureSearchResult adapt(String line)
          Transform one object into another
static CaptureSearchResult doAdapt(String line)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CDXLineToSearchResultAdapter

public CDXLineToSearchResultAdapter()
Method Detail

adapt

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

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

doAdapt

public static CaptureSearchResult doAdapt(String line)
Parameters:
line -
Returns:
SearchResult representation of input line


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