FileOutputStream os = new FileOutputStream(tmpFile);
BufferedOutputStream bos = new BufferedOutputStream(os);
PrintWriter pw = new PrintWriter(bos);
Adapter<CaptureSearchResult,String> adapterSRtoS =
new SearchResultToCDXLineAdapter();
Iterator<String> itrS =
new AdaptedIterator<CaptureSearchResult,String>(itr,adapterSRtoS);
while(itrS.hasNext()) {
pw.println(itrS.next());