net.sourceforge.pmd.renderers
Class CSVWriter<T>
java.lang.Object
net.sourceforge.pmd.renderers.CSVWriter<T>
- Type Parameters:
T
-
public class CSVWriter<T>
- extends java.lang.Object
A generic writer that formats input items into rows and columns per the provided column descriptors.
- Author:
- Brian Remedios
Constructor Summary |
CSVWriter(java.util.List<ColumnDescriptor<T>> theColumns,
java.lang.String theSeparator,
java.lang.String theLineSeparator)
|
Method Summary |
void |
writeData(java.io.Writer writer,
java.util.Iterator<T> items)
|
void |
writeTitles(java.io.Writer writer)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CSVWriter
public CSVWriter(java.util.List<ColumnDescriptor<T>> theColumns,
java.lang.String theSeparator,
java.lang.String theLineSeparator)
writeTitles
public void writeTitles(java.io.Writer writer)
throws java.io.IOException
- Throws:
java.io.IOException
writeData
public void writeData(java.io.Writer writer,
java.util.Iterator<T> items)
throws java.io.IOException
- Throws:
java.io.IOException
Copyright © 2002-2015 InfoEther. All Rights Reserved.