org.rhq.enterprise.server.rest.reporting
Class CsvWriter<T>

java.lang.Object
  extended by org.rhq.enterprise.server.rest.reporting.CsvWriter<T>

public class CsvWriter<T>
extends Object

Author:
John Sanda

Field Summary
 PropertyConverter<T> DATE_CONVERTER
           
 PropertyConverter<T> SIMPLE_CONVERTER
           
 
Constructor Summary
CsvWriter()
           
 
Method Summary
 void setColumns(String... columns)
           
 void setPropertyConverter(String propertyName, PropertyConverter<T> propertyConverter)
           
 void write(T object, OutputStream outputStream)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SIMPLE_CONVERTER

public final PropertyConverter<T> SIMPLE_CONVERTER

DATE_CONVERTER

public final PropertyConverter<T> DATE_CONVERTER
Constructor Detail

CsvWriter

public CsvWriter()
Method Detail

setColumns

public void setColumns(String... columns)

setPropertyConverter

public void setPropertyConverter(String propertyName,
                                 PropertyConverter<T> propertyConverter)

write

public void write(T object,
                  OutputStream outputStream)
           throws IOException
Throws:
IOException


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.