public class FileStorage extends ReportStorage
<file-prefix><report-index + index-offset><file-suffix>.<extension>
| Constructor and Description |
|---|
FileStorage(java.lang.String directory)
Creates a new file storage.
|
FileStorage(java.lang.String directory,
java.lang.String filePrefix,
java.lang.String fileSuffix)
Creates a new file storage.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getDirectory()
Gets the output directory.
|
java.lang.String |
getFilePrefix()
Gets the file prefix.
|
java.lang.String |
getFileSuffix()
Gets the file suffix.
|
int |
getIndexOffset()
Gets the index offset that is added to report index.
|
protected void |
init()
Invoked by the report engine to initialize this storage before generating
reports.
|
void |
setDirectory(java.lang.String directory)
Sets the output directory.
|
void |
setFilePrefix(java.lang.String filePrefix)
Sets the file prefix.
|
void |
setFileSuffix(java.lang.String fileSuffix)
Sets the file suffix (not extension!).
|
void |
setIndexOffset(int indexOffset)
Sets the report index offset.
|
void |
storeReport(Report report,
ReportContext info)
Invoked by the report engine to store a report.
|
finishpublic FileStorage(java.lang.String directory)
directory - Directory where files are stored into.public FileStorage(java.lang.String directory,
java.lang.String filePrefix,
java.lang.String fileSuffix)
directory - Directory where files are stored into.filePrefix - Prefix of file-names.fileSuffix - Suffix of file-names (NOT extension!).public void storeReport(Report report, ReportContext info) throws ReportException
ReportStoragestoreReport in class ReportStoragereport - Reportinfo - Context of reportReportExceptionprotected void init()
throws ReportException
ReportStorageinit in class ReportStorageReportExceptionpublic java.lang.String getDirectory()
public java.lang.String getFilePrefix()
public java.lang.String getFileSuffix()
public int getIndexOffset()
public void setDirectory(java.lang.String directory)
directory - Stringpublic void setFilePrefix(java.lang.String filePrefix)
filePrefix - Stringpublic void setFileSuffix(java.lang.String fileSuffix)
fileSuffix - Stringpublic void setIndexOffset(int indexOffset)
indexOffset - int© 2003-2011 by Sascha Schmidt (vision-cloud.de). All Rights Reserved.