public class CsvWriter extends OutputWriter
customOutputs, errors, KEY_ERRORS, KEY_ITEMS, KEY_NB_ERRORS, KEY_SIZE, max, NB_MAX, nbErrors, PARAM_SIZE, PARAM_WRITER, PATH_KEY, pipe, size, writer
Constructor and Description |
---|
CsvWriter() |
Modifier and Type | Method and Description |
---|---|
void |
ends()
writes the end of the output
|
boolean |
handleRequest(org.apache.sling.api.SlingHttpServletRequest request) |
protected void |
initResponse(org.apache.sling.api.SlingHttpServletResponse response)
Specifically init the response
|
void |
starts()
Init the writer, writes beginning of the output
|
protected void |
writeItem(org.apache.sling.api.resource.Resource resource)
Write a given resource
|
error, getCustomOutputs, init, setCustomOutputs, setMax, setPipe, setWriter, toString, write
public boolean handleRequest(org.apache.sling.api.SlingHttpServletRequest request)
handleRequest
in class OutputWriter
request
- current requestprotected void initResponse(org.apache.sling.api.SlingHttpServletResponse response)
OutputWriter
initResponse
in class OutputWriter
response
- response on which to writepublic void starts()
OutputWriter
starts
in class OutputWriter
protected void writeItem(org.apache.sling.api.resource.Resource resource)
OutputWriter
writeItem
in class OutputWriter
resource
- resource that will be writtenpublic void ends()
OutputWriter
ends
in class OutputWriter
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.