|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.solr.internal.csv.CSVPrinter
public class CSVPrinter
Print values as a comma separated list.
| Field Summary | |
|---|---|
protected char[] |
buf
|
protected boolean |
newLine
True if we just began a new line. |
protected Writer |
out
The place that the values get written. |
protected CSVStrategy |
strategy
|
| Constructor Summary | |
|---|---|
CSVPrinter(Writer out,
CSVStrategy strategy)
Create a printer that will print values to the given stream following the CSVStrategy. |
|
| Method Summary | |
|---|---|
void |
flush()
|
void |
print(char[] value,
int offset,
int len,
boolean checkForEscape)
|
void |
print(String value)
Print the string as the next value on the line. |
void |
print(String value,
boolean checkForEscape)
Print the string as the next value on the line. |
void |
println()
Output a blank line |
void |
println(String[] values)
Print a single line of comma separated values. |
void |
printlnComment(String comment)
Put a comment among the comma separated values. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final Writer out
protected final CSVStrategy strategy
protected boolean newLine
protected char[] buf
| Constructor Detail |
|---|
public CSVPrinter(Writer out,
CSVStrategy strategy)
out - stream to which to print.strategy - describes the CSV variation.| Method Detail |
|---|
public void println()
throws IOException
IOException
public void flush()
throws IOException
IOException
public void println(String[] values)
throws IOException
values - values to be outputted.
IOException
public void printlnComment(String comment)
throws IOException
comment - the comment to output
IOException
public void print(char[] value,
int offset,
int len,
boolean checkForEscape)
throws IOException
IOException
public void print(String value,
boolean checkForEscape)
throws IOException
value - value to be outputted.
IOException
public void print(String value)
throws IOException
value - value to be outputted.
IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||