Class PrometheusSheetWriter
java.lang.Object
io.github.tonywasher.joceanus.prometheus.sheets.PrometheusSheetWriter
- All Implemented Interfaces:
PrometheusSheetControl
Write control for spreadsheets.
- Author:
- Tony Washer
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedConstructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddSheet(PrometheusSheetDataItem<?> pSheet) Add Sheet to list.voidcreateBackup(GordianZipLock pZipLock, OutputStream pZipStream) Create a Backup Workbook.voidcreateBackup(PrometheusDataSet pData, File pFile, PrometheusSheetWorkBookType pType) Create a Backup Workbook.voidcreateBackup(PrometheusDataSet pData, OutputStream pZipStream, PrometheusSheetWorkBookType pType) Create a Backup Workbook.voidcreateBackup(OutputStream pZipStream) Create a Backup Workbook.getData()get data.get report.get workbook.protected abstract voidRegister sheets.
-
Constructor Details
-
PrometheusSheetWriter
Constructor.- Parameters:
pReport- the report
-
-
Method Details
-
getReport
Description copied from interface:PrometheusSheetControlget report.- Specified by:
getReportin interfacePrometheusSheetControl- Returns:
- the report
-
getWorkBook
Description copied from interface:PrometheusSheetControlget workbook.- Specified by:
getWorkBookin interfacePrometheusSheetControl- Returns:
- the workbook
-
getData
Description copied from interface:PrometheusSheetControlget data.- Specified by:
getDatain interfacePrometheusSheetControl- Returns:
- the data
-
addSheet
Add Sheet to list.- Parameters:
pSheet- the sheet
-
createBackup
public void createBackup(PrometheusDataSet pData, File pFile, PrometheusSheetWorkBookType pType) throws OceanusException Create a Backup Workbook.- Parameters:
pData- Data to write outpFile- the backup file to write topType- the workBookType- Throws:
OceanusException- on error
-
createBackup
public void createBackup(PrometheusDataSet pData, OutputStream pZipStream, PrometheusSheetWorkBookType pType) throws OceanusException Create a Backup Workbook.- Parameters:
pData- Data to write outpZipStream- the output streampType- the workBookType- Throws:
OceanusException- on error
-
createBackup
Create a Backup Workbook.- Parameters:
pZipStream- the backup file to write to- Throws:
OceanusException- on error
-
createBackup
Create a Backup Workbook.- Parameters:
pZipLock- the zipLockpZipStream- the backup file to write to- Throws:
OceanusException- on error
-
registerSheets
protected abstract void registerSheets()Register sheets.
-