public class PlainTextWriter extends HttpCDXWriter
response, RUNTIME_ERROR_HEADER, writer, X_CLUSTER_URI, X_MAX_LINES, X_NUM_PAGES
Constructor and Description |
---|
PlainTextWriter(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.
|
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, writeMiscLine
modifyOutputFormat, trackLine
public PlainTextWriter(javax.servlet.http.HttpServletResponse response, boolean gzip) throws IOException
IOException
public void begin()
BaseProcessor
begin()
on nested processor.public int writeLine(org.archive.format.cdx.CDXLine line)
BaseProcessor
line
.line
- CDXLine
line
is sent to output, 0 otherwise.public void end()
BaseProcessor
end()
on nested processor.public void writeResumeKey(String resumeKey)
BaseProcessor
CDXWriter
should do
actual work. All intermediaries shall simply call
writeResumeKey(resumeKey)
on nested processor.Copyright © 2005–2015 IIPC. All rights reserved.