public abstract class RevisitResolver extends DupeCountProcessor
Modifier and Type | Field and Description |
---|---|
static String |
origfilename |
static String |
origlength |
static String |
origoffset |
dupecount, dupeHashmap, showDupeCount
inner
Constructor and Description |
---|
RevisitResolver(BaseProcessor output,
boolean showDupeCount) |
Modifier and Type | Method and Description |
---|---|
protected void |
fillBlankOrig(org.archive.format.cdx.CDXLine line) |
protected void |
fillRevisit(org.archive.format.cdx.CDXLine line,
org.archive.format.cdx.CDXLine origLine) |
protected abstract void |
handleLine(org.archive.cdxserver.processor.DupeCountProcessor.DupeTrack counter,
org.archive.format.cdx.CDXLine line,
boolean isDupe) |
protected boolean |
isRevisit(org.archive.format.cdx.CDXLine line) |
org.archive.format.cdx.FieldSplitFormat |
modifyOutputFormat(org.archive.format.cdx.FieldSplitFormat format)
Return output format (list of fields), given input format
format . |
createDupeTrack, writeLine
begin, end, trackLine, writeResumeKey
public static final String origfilename
public static final String origoffset
public static final String origlength
public RevisitResolver(BaseProcessor output, boolean showDupeCount)
protected void fillBlankOrig(org.archive.format.cdx.CDXLine line)
protected void fillRevisit(org.archive.format.cdx.CDXLine line, org.archive.format.cdx.CDXLine origLine)
protected abstract void handleLine(org.archive.cdxserver.processor.DupeCountProcessor.DupeTrack counter, org.archive.format.cdx.CDXLine line, boolean isDupe)
handleLine
in class DupeCountProcessor
protected boolean isRevisit(org.archive.format.cdx.CDXLine line)
public org.archive.format.cdx.FieldSplitFormat modifyOutputFormat(org.archive.format.cdx.FieldSplitFormat format)
BaseProcessor
format
.
Intermediaries should call modifyOutputFormat(format)
on nested
processor first, then make appropriate changes to it if they add/remove
fields.modifyOutputFormat
in interface BaseProcessor
modifyOutputFormat
in class DupeCountProcessor
format
- input formatCDXFieldConstants
Copyright © 2005–2015 IIPC. All rights reserved.