public class DefaultWriter extends Object implements DataWriter
Modifier and Type | Field and Description |
---|---|
protected static org.apache.log4j.Logger |
log
Logger
|
Constructor and Description |
---|
DefaultWriter(OutputStream os,
String[] outTemplate)
Constructor
|
Modifier and Type | Method and Description |
---|---|
DefaultWriter |
setSeparator(String newSeparator)
Changes the current separator to the given one
|
void |
writeOutput(DataPipe cr)
Writes an output to a given data pipe
|
public DefaultWriter(OutputStream os, String[] outTemplate)
os
- the output stream to use in writingoutTemplate
- the output template to format writingpublic DefaultWriter setSeparator(String newSeparator)
newSeparator
- the new separatorpublic void writeOutput(DataPipe cr)
DataWriter
writeOutput
in interface DataWriter
cr
- the DataPipe to write toCopyright © 2016. All rights reserved.