|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.tigris.scarab.screens.DataExport.TSVPrinter
Uses a PrintWriter internally to do actual
writing. If content with tabs and newlines in it is
double-quoted, Excel does the Right Thing when parsing.
| Constructor Summary | |
DataExport.TSVPrinter(java.io.Writer writer)
Creates a new instance. |
|
| Method Summary | |
void |
print(java.lang.String s)
Prints one field at a time. |
void |
println()
Must be called when done writing a line -- this prints a newline and flushes the printer. |
protected java.lang.String |
quote(java.lang.String s)
Quote the string argument. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DataExport.TSVPrinter(java.io.Writer writer)
writer - Writer to output to.
java.lang.IllegalArgumentException - If writer is
null.| Method Detail |
public void print(java.lang.String s)
public void println()
protected java.lang.String quote(java.lang.String s)
s - Text to quote.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||