public class DeduplicateToCDXAdapter extends Object implements DeduplicateToCDXAdapterInterface
Constructor and Description |
---|
DeduplicateToCDXAdapter()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
adaptLine(String line)
If the input line is a crawl log entry representing a duplicate then a CDX entry is written to the output.
|
void |
adaptStream(InputStream is,
OutputStream os)
Reads an input stream representing a crawl log line by line and converts any lines representing duplicate entries
to wayback-compliant cdx lines.
|
public DeduplicateToCDXAdapter()
public String adaptLine(String line)
adaptLine
in interface DeduplicateToCDXAdapterInterface
line
- the crawl-log line to be analysedpublic void adaptStream(InputStream is, OutputStream os)
adaptStream
in interface DeduplicateToCDXAdapterInterface
is
- The input stream from which data is read.os
- The output stream to which the cdx lines are written.Copyright © 2005–2015 The Royal Danish Library, the Danish State and University Library, the National Library of France and the Austrian National Library.. All rights reserved.