public abstract class CDXWriter extends Object implements BaseProcessor
Constructor and Description |
---|
CDXWriter() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
boolean |
isAborted() |
org.archive.format.cdx.FieldSplitFormat |
modifyOutputFormat(org.archive.format.cdx.FieldSplitFormat format)
Return output format (list of fields), given input format
format . |
void |
printError(String msg) |
void |
printNumPages(int numPages,
boolean printInBody) |
void |
serverError(Exception io) |
void |
setContentType(String contentType) |
void |
setMaxLines(int numLines,
String remoteClusterUri) |
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. |
void |
writeMiscLine(String text) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
begin, end, writeLine, writeResumeKey
public void setContentType(String contentType)
public boolean isAborted()
public void printError(String msg)
public void writeMiscLine(String text)
public void setMaxLines(int numLines, String remoteClusterUri)
public void printNumPages(int numPages, boolean printInBody)
public void close()
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
format
- input formatCDXFieldConstants
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 void serverError(Exception io)
Copyright © 2005–2015 IIPC. All rights reserved.