public abstract class StiExportService
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
int |
currentPassNumber |
static long |
DATE_1900 |
protected java.io.File |
exFile |
protected java.util.List<java.io.File> |
exportedFiles |
protected StiReport |
exportReport |
protected StiExportSettings |
exportSettings |
int |
maximumPassNumber |
static long |
MILLISECONDS_IN_DAY |
protected boolean |
multipleFiles |
static long |
ONE_HOUR |
protected java.io.OutputStream |
outputStream |
protected int |
RenderedPagesCount |
protected java.lang.String |
statusString |
| Constructor and Description |
|---|
StiExportService() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
closeProgress() |
void |
export()
Run export thread
|
void |
export(StiReport report) |
abstract void |
export(StiReport report,
java.io.OutputStream outputStream,
StiExportSettings settings)
Export
StiReport |
void |
export(StiReport report,
java.lang.String filePath)
Exports a document to the file.
|
void |
export(StiReport report,
java.lang.String filePath,
boolean sendEMail)
Exports a document to the stream.
|
java.io.File |
getExFile() |
java.util.List<java.io.File> |
getExportedFiles() |
abstract StiExportFormat |
getExportFormat()
Returs service export format
|
StiExportSettings |
getExportSettings() |
abstract boolean |
getMultipleFiles()
Gets a value indicating a number of files in exported document as a result of export
|
java.lang.String |
getStatusString() |
void |
invokeExporting(int value,
int maximum)
Change progress bar status
|
void |
invokeExporting(StiExportingEventArgs e)
Change progress bar status
|
void |
invokeExporting(StiPage page,
StiPagesCollection pages)
Change progress bar status
|
boolean |
isStoped() |
protected void |
processFile(boolean sendEMail,
boolean openAfterExport,
java.lang.String fileName,
StiReport report) |
protected void |
sendEMail(java.lang.String subject,
java.lang.String body,
java.lang.String filePath) |
protected void |
sendEMail(java.lang.String recipient,
java.lang.String subject,
java.lang.String body,
java.lang.String filePath) |
void |
setExFile(java.io.File exFile) |
void |
setExportReport(StiReport exportReport) |
void |
setExportSettings(StiExportSettings exportSettings) |
void |
setOutputStream(java.io.OutputStream outputStream) |
void |
setProgress(IStiProgressInformation progress)
Set pregress information
|
void |
setStatusString(java.lang.String statusString) |
public static final long ONE_HOUR
public static final long MILLISECONDS_IN_DAY
public static final long DATE_1900
protected int RenderedPagesCount
protected java.io.File exFile
protected java.lang.String statusString
protected boolean multipleFiles
protected java.io.OutputStream outputStream
protected StiExportSettings exportSettings
protected StiReport exportReport
protected java.util.List<java.io.File> exportedFiles
public int currentPassNumber
public int maximumPassNumber
public void export()
throws java.lang.Throwable
java.lang.Throwablepublic abstract void export(StiReport report, java.io.OutputStream outputStream, StiExportSettings settings) throws StiException
StiReportreport - StiReport to exportoutputStream - OutputStream for exportsettings - StiExportSettingsjava.lang.ExceptionStiExceptionpublic void invokeExporting(StiPage page, StiPagesCollection pages)
page - StiPage currend pagepages - StiPagesCollection total exporting pagespublic void invokeExporting(int value,
int maximum)
value - maximum - public void invokeExporting(StiExportingEventArgs e)
e - StiExportingEventArgsprotected void closeProgress()
public void export(StiReport report, java.lang.String filePath)
report - A StiReport which is to be exported.filename - A file path for the export of a document.public void export(StiReport report, java.lang.String filePath, boolean sendEMail)
report - A StiReport which is to be exported.fileName - A file path for the export of a document.sendEMail - A parameter indicating whether is exported report will be sendedpublic void export(StiReport report)
protected void processFile(boolean sendEMail,
boolean openAfterExport,
java.lang.String fileName,
StiReport report)
protected void sendEMail(java.lang.String subject,
java.lang.String body,
java.lang.String filePath)
protected void sendEMail(java.lang.String recipient,
java.lang.String subject,
java.lang.String body,
java.lang.String filePath)
public abstract boolean getMultipleFiles()
public abstract StiExportFormat getExportFormat()
StiExportFormatpublic java.lang.String getStatusString()
public void setStatusString(java.lang.String statusString)
statusString - the statusString to setpublic boolean isStoped()
public void setProgress(IStiProgressInformation progress)
progress - IStiProgressInformation the progress to setpublic void setOutputStream(java.io.OutputStream outputStream)
outputStream - the outputStream to setpublic void setExportSettings(StiExportSettings exportSettings)
exportSettings - the exportSettings to setpublic void setExportReport(StiReport exportReport)
exportReport - the exportReport to setpublic void setExFile(java.io.File exFile)
exFile - the exFile to setpublic java.io.File getExFile()
public StiExportSettings getExportSettings()
public java.util.List<java.io.File> getExportedFiles()
Copyright © 2019 Stimulsoft. All Rights Reserved.