Package de.esoco.data.document
Schnittstelle TabularDocumentWriter<T>
- Alle bekannten Implementierungsklassen:
CsvDocumentWriter
public interface TabularDocumentWriter<T>
An interface that defines the creation of tabular data documents. The column
values can be added by means of
addValue(Object)
and new table rows
can be created with newRow()
. After completion the resulting
document can be generated and queried with createDocument()
.-
Verschachtelte Klassen - Übersicht
Modifizierer und TypSchnittstelleBeschreibungstatic enum
The available date type formats -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoid
Adds a value object to the current position in the document.Generates and/or returns the resulting document.Returns the file type of the generated document.void
newRow()
Indicates that a new row should be started at the current position of the document.
-
Methodendetails
-
addValue
Adds a value object to the current position in the document. NULL values will be handled as an empty celll.- Parameter:
item
- The value to add
-
createDocument
Generates and/or returns the resulting document.- Gibt zurück:
- The resulting document
- Löst aus:
Exception
- if the document creation fails
-
getFileType
FileType getFileType()Returns the file type of the generated document.- Gibt zurück:
- The file type
-
newRow
void newRow()Indicates that a new row should be started at the current position of the document.
-