Package com.storedobject.office
Class CSVReport
java.lang.Object
com.storedobject.core.StreamContentProducer
com.storedobject.core.TextContentProducer
com.storedobject.office.TextReport
com.storedobject.office.CSVReport
- All Implemented Interfaces:
Executable,ContentProducer,ContentType,RequiresTransactionManager,Closeable,AutoCloseable,Runnable
- Direct Known Subclasses:
DataDownload
-
Field Summary
Fields inherited from class com.storedobject.core.StreamContentProducer
entity, out -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetColumnCount(int columnCount) Sets the number of columns for the CSV report.final voidSet a value at a specific column in the current row.final voidSet values starting from the first column in the current row.final voidsetValuesFrom(int startingColumn, Object... values) Set values starting from a specific column in the current row.voidwriteRow()Write out the current row.Methods inherited from class com.storedobject.office.TextReport
execute, getDevice, setEntity, setTransactionManager, viewMethods inherited from class com.storedobject.core.TextContentProducer
generateContent, getContentType, getFileExtension, setContentGeneratorMethods inherited from class com.storedobject.core.StreamContentProducer
abort, close, getContent, getEntity, getError, getFileName, getReportFormat, getTransactionManager, getWriter, isBlocked, isBlocked, produce, readyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.storedobject.core.ContentProducer
extractContent, getStreamData, getStreamDataProvider, getSystemEntity, saveTo, saveTo, saveTo, saveToMethods inherited from interface com.storedobject.core.ContentType
getLink, getMimeType, isAudio, isHTML, isImage, isLink, isMedia, isPDF, isText, isVideoMethods inherited from interface com.storedobject.common.Executable
act, run
-
Constructor Details
-
CSVReport
-
CSVReport
Constructor.- Parameters:
device- DevicecolumnCount- Column count.
-
-
Method Details
-
setColumnCount
public void setColumnCount(int columnCount) Sets the number of columns for the CSV report.- Parameters:
columnCount- The number of columns to be set.
-
setValue
Set a value at a specific column in the current row.- Parameters:
column- Column,value- Value to set.
-
setValuesFrom
Set values starting from a specific column in the current row.- Parameters:
startingColumn- Column,values- Values to set.
-
setValues
Set values starting from the first column in the current row.- Parameters:
values- Values to set.
-
writeRow
-