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 TypeMethodDescriptionvoid
setColumnCount
(int columnCount) Sets the number of columns for the CSV report.final void
Set a value at a specific column in the current row.final void
Set values starting from the first column in the current row.final void
setValuesFrom
(int startingColumn, Object... values) Set values starting from a specific column in the current row.void
writeRow()
Write out the current row.Methods inherited from class com.storedobject.office.TextReport
execute, getDevice, setEntity, setTransactionManager, view
Methods inherited from class com.storedobject.core.TextContentProducer
generateContent, getContentType, getFileExtension, setContentGenerator
Methods inherited from class com.storedobject.core.StreamContentProducer
abort, close, getContent, getEntity, getError, getFileName, getReportFormat, getTransactionManager, getWriter, isBlocked, isBlocked, produce, ready
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.storedobject.core.ContentProducer
extractContent, getStreamData, getStreamDataProvider, getSystemEntity, saveTo, saveTo, saveTo, saveTo
Methods inherited from interface com.storedobject.core.ContentType
getLink, getMimeType, isAudio, isHTML, isImage, isLink, isMedia, isPDF, isText, isVideo
Methods 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
-