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()
BaseProcessor
begin()
on nested processor.begin
in interface BaseProcessor
public int writeLine(org.archive.format.cdx.CDXLine line)
BaseProcessor
line
.writeLine
in interface BaseProcessor
line
- CDXLine
line
is sent to output, 0 otherwise.public void writeResumeKey(String resumeKey)
BaseProcessor
CDXWriter
should do
actual work. All intermediaries shall simply call
writeResumeKey(resumeKey)
on nested processor.writeResumeKey
in interface BaseProcessor
public void end()
BaseProcessor
end()
on nested processor.end
in interface BaseProcessor
public void trackLine(org.archive.format.cdx.CDXLine line)
BaseProcessor
collapser
processing. Typically used for counting the number of CDX lines
collapsed / grouped.trackLine
in interface BaseProcessor
line
- CDX linepublic 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
format
- input formatCDXFieldConstants
Copyright © 2005–2015 IIPC. All rights reserved.