public class LastNLineProcessor extends WrappedProcessor
Modifier and Type | Field and Description |
---|---|
protected int |
limit |
protected LinkedList<org.archive.format.cdx.CDXLine> |
lines |
inner
Constructor and Description |
---|
LastNLineProcessor(BaseProcessor output,
int limit) |
Modifier and Type | Method and Description |
---|---|
void |
end()
Called at the end.
|
protected void |
flush() |
int |
writeLine(org.archive.format.cdx.CDXLine line)
Process
line . |
void |
writeResumeKey(String resumeKey)
Write resumption key.
|
begin, modifyOutputFormat, trackLine
protected LinkedList<org.archive.format.cdx.CDXLine> lines
protected int limit
public LastNLineProcessor(BaseProcessor output, int limit)
public int writeLine(org.archive.format.cdx.CDXLine line)
BaseProcessor
line
.writeLine
in interface BaseProcessor
writeLine
in class WrappedProcessor
line
- CDXLine
line
is sent to output, 0 otherwise.protected void flush()
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
writeResumeKey
in class WrappedProcessor
public void end()
BaseProcessor
end()
on nested processor.end
in interface BaseProcessor
end
in class WrappedProcessor
Copyright © 2005–2015 IIPC. All rights reserved.