public class WrappedProcessor extends Object implements BaseProcessor
| Modifier and Type | Field and Description |
|---|---|
protected BaseProcessor |
inner |
| Constructor and Description |
|---|
WrappedProcessor(BaseProcessor output) |
| Modifier and Type | Method and Description |
|---|---|
void |
begin()
This method will be called just before looping over
the sequence of CDX lines.
|
void |
end()
Called at the end.
|
org.archive.format.cdx.FieldSplitFormat |
modifyOutputFormat(org.archive.format.cdx.FieldSplitFormat format)
Return output format (list of fields), given input format
format. |
void |
trackLine(org.archive.format.cdx.CDXLine line)
Called on each CDX line, just before timestamp range filtering
(to and from parameters), regexp filtering, and
collapser
processing. |
int |
writeLine(org.archive.format.cdx.CDXLine line)
Process
line. |
void |
writeResumeKey(String resumeKey)
Write resumption key.
|
protected BaseProcessor inner
public WrappedProcessor(BaseProcessor output)
public void begin()
BaseProcessorbegin()
on nested processor.begin in interface BaseProcessorpublic int writeLine(org.archive.format.cdx.CDXLine line)
BaseProcessorline.writeLine in interface BaseProcessorline - CDXLineline is sent to output, 0 otherwise.public void writeResumeKey(String resumeKey)
BaseProcessorCDXWriter should do
actual work. All intermediaries shall simply call
writeResumeKey(resumeKey) on nested processor.writeResumeKey in interface BaseProcessorpublic void end()
BaseProcessorend()
on nested processor.end in interface BaseProcessorpublic void trackLine(org.archive.format.cdx.CDXLine line)
BaseProcessorcollapser
processing. Typically used for counting the number of CDX lines
collapsed / grouped.trackLine in interface BaseProcessorline - CDX linepublic org.archive.format.cdx.FieldSplitFormat modifyOutputFormat(org.archive.format.cdx.FieldSplitFormat format)
BaseProcessorformat.
Intermediaries should call modifyOutputFormat(format) on nested
processor first, then make appropriate changes to it if they add/remove
fields.modifyOutputFormat in interface BaseProcessorformat - input formatCDXFieldConstantsCopyright © 2005–2015 IIPC. All rights reserved.