public class BucketJson2CSVConvertor extends net.idea.modbcum.p.DefaultAmbitProcessor<InputStream,OutputStream>
Modifier and Type | Field and Description |
---|---|
protected List<String> |
conditionHeaders |
protected String |
delimiter |
protected com.fasterxml.jackson.databind.ObjectMapper |
dx |
protected List<String> |
headers |
protected static ResourceBundle |
labels |
protected List<String> |
moreHeaders |
protected OutputStream |
out |
protected List<String> |
paramHeaders |
protected List<String> |
studyHeaders |
Constructor and Description |
---|
BucketJson2CSVConvertor(String delimiter) |
BucketJson2CSVConvertor(String[] header,
String[] paramHeaders,
String[] studyHeaders,
String[] conditionHeaders) |
BucketJson2CSVConvertor(String[] header,
String[] paramHeaders,
String[] studyHeaders,
String[] conditionHeaders,
String delimiter) |
Modifier and Type | Method and Description |
---|---|
protected static String |
_quote(com.fasterxml.jackson.databind.JsonNode node,
String delimiter) |
protected String |
cleanHeader(String header) |
String |
getDelimiter() |
List<String> |
getHeaders() |
OutputStream |
getOut() |
protected Map<String,com.fasterxml.jackson.databind.JsonNode> |
lookup(com.fasterxml.jackson.databind.node.ArrayNode subdocs,
String type_s,
String key) |
protected void |
printHeaders(OutputStream out,
List<String> headers,
String prefix) |
protected void |
printValues(OutputStream out,
List<String> headers,
com.fasterxml.jackson.databind.JsonNode[] docs) |
protected void |
printValues(OutputStream out,
List<String> headers,
com.fasterxml.jackson.databind.JsonNode[] docs,
boolean extend) |
OutputStream |
process(InputStream in) |
void |
setDelimiter(String delimiter) |
void |
setHeaders(String[] headers) |
void |
setOut(OutputStream out) |
protected String delimiter
protected com.fasterxml.jackson.databind.ObjectMapper dx
protected OutputStream out
protected static ResourceBundle labels
public BucketJson2CSVConvertor(String delimiter)
public BucketJson2CSVConvertor(String[] header, String[] paramHeaders, String[] studyHeaders, String[] conditionHeaders)
public String getDelimiter()
public void setDelimiter(String delimiter)
public void setHeaders(String[] headers)
public OutputStream getOut()
public void setOut(OutputStream out)
protected void printHeaders(OutputStream out, List<String> headers, String prefix) throws Exception
Exception
protected void printValues(OutputStream out, List<String> headers, com.fasterxml.jackson.databind.JsonNode[] docs) throws IOException
IOException
protected void printValues(OutputStream out, List<String> headers, com.fasterxml.jackson.databind.JsonNode[] docs, boolean extend) throws IOException
IOException
protected static String _quote(com.fasterxml.jackson.databind.JsonNode node, String delimiter)
public OutputStream process(InputStream in) throws Exception
Exception
Copyright © 2004–2020 Ideaconsult Ltd.. All rights reserved.