public class JsonWriter extends HttpCDXWriter
response, RUNTIME_ERROR_HEADER, writer, X_CLUSTER_URI, X_MAX_LINES, X_NUM_PAGES| Constructor and Description |
|---|
JsonWriter(javax.servlet.http.HttpServletResponse response,
boolean gzip) |
| 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.
|
protected void |
writeHeader(org.archive.format.cdx.FieldSplitFormat names) |
int |
writeLine(org.archive.format.cdx.CDXLine line)
Process
line. |
void |
writeResumeKey(String resumeKey)
Write resumption key.
|
close, getGzipWriter, isAborted, printError, printNumPages, serverError, setContentType, setMaxLines, writeMiscLinemodifyOutputFormat, trackLinepublic JsonWriter(javax.servlet.http.HttpServletResponse response,
boolean gzip)
throws IOException
IOExceptionpublic void begin()
BaseProcessorbegin()
on nested processor.protected void writeHeader(org.archive.format.cdx.FieldSplitFormat names)
public int writeLine(org.archive.format.cdx.CDXLine line)
BaseProcessorline.line - CDXLineline is sent to output, 0 otherwise.public void end()
BaseProcessorend()
on nested processor.public void writeResumeKey(String resumeKey)
BaseProcessorCDXWriter should do
actual work. All intermediaries shall simply call
writeResumeKey(resumeKey) on nested processor.Copyright © 2005–2015 IIPC. All rights reserved.