|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--net.windward.xmlreport.ProcessReport
|
+--net.windward.xmlreport.ProcessTxt
This class is the main program that takes a template stream and a datasource and
merges them to create a txt report stream. The way
to use this is to construct a ProcessRtf object, set any options, then call process.
When writing to this format, all characters are assumed to be 12 point fixed width.
The calling method must close all streams after calling process. process will flush the
output (report) stream before returning.
| Fields inherited from class net.windward.xmlreport.ProcessReport |
TEMPLATE_TYPE_DOCX, TEMPLATE_TYPE_RTF, TEMPLATE_TYPE_UNKNOWN, TEMPLATE_TYPE_WORD_11, TEMPLATE_TYPE_XLSX |
| Fields inherited from interface net.windward.xmlreport.ProcessReportAPI |
CHARSET_DEFAULT, CHARSET_RTF, CHARSET_UNICODE, LOCALE_DEFAULT, LOCALE_SYSTEM, TYP_DOCX, TYP_EXCEL_ML, TYP_HTML, TYP_PDF, TYP_RTF, TYP_TXT, TYP_WORD_ML, TYP_XLS, TYP_XLSX |
| Constructor Summary | |
ProcessTxt(java.io.InputStream rtfTemplate)
Create a ProcessTxt object with the passed in template. |
|
ProcessTxt(java.io.InputStream xmlData,
java.io.InputStream rtfTemplate,
java.io.OutputStream report)
Create a ProcessReport object with the passed in template & data streams, writing it to the passed in report stream. |
|
ProcessTxt(java.io.InputStream rtfTemplate,
java.io.OutputStream report)
Create a ProcessTxt object with the passed in template, writing it to the passed in report stream. |
|
| Method Summary | |
ProcessReportAPIBase |
duplicate(java.io.OutputStream out)
Creates and returns a copy of this object. |
java.lang.String |
getFont()
Get the font used when formatting txt output. |
int |
getFontSize()
Get the font size used when formatting txt output. |
int |
getReportType()
Get the report format of the output stream. |
boolean |
isBreakPage()
Returns true if a Ctrl-L is in the report for each page break. |
boolean |
isShowHeaders()
Returns true if the header and footers are printed in the report. |
boolean |
isUseMargins()
If true, then the left page margin will be included in the output, creating leading spaces for each line. |
void |
setBreakPage(boolean breakPage)
Set true if a Ctrl-L is in the report for each page break. |
void |
setFont(java.lang.String font)
Set the font used when formatting txt output. |
void |
setFontSize(int twips)
Set the font size used when formatting txt output. |
void |
setShowHeaders(boolean showHeaders)
Set if the header and footers are printed in the report. |
void |
setUseMargins(boolean useThem)
If true, then the left page margin will be included in the output, creating leading spaces for each line. |
| Methods inherited from class net.windward.xmlreport.ProcessReport |
addBean, close, dispose, getBaseDirectory, getCharset, getChartProvider, getCompany, getImportingProvider, getInfo, getKeywords, getLocale, getNumPages, getReport, getSubject, getTitle, getVersion, getVersionMajor, getVersionMinor, getVersionRelease, init, isDebugMode, process, processComplete, processData, processSetup, processSetup, setBaseDirectory, setCharset, setChartProvider, setDebugMode, setKeywords, setLocale, setSubject, setTitle, statLine |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface net.windward.xmlreport.ProcessReportAPI |
setChartProvider |
| Methods inherited from interface net.windward.xmlreport.ProcessReportAPIBase |
addBean, close, getBaseDirectory, getCharset, getInfo, getKeywords, getLocale, getNumPages, getReport, getSubject, getTitle, isDebugMode, process, processComplete, processData, processSetup, processSetup, setBaseDirectory, setCharset, setDebugMode, setKeywords, setLocale, setSubject, setTitle |
| Constructor Detail |
public ProcessTxt(java.io.InputStream rtfTemplate)
throws LicenseException,
SetupException
rtfTemplate - The report template, as a rtf document.LicenseException - thrown if the license licenseKey check fails. The message will list the license check that failed.
public ProcessTxt(java.io.InputStream rtfTemplate,
java.io.OutputStream report)
throws LicenseException,
SetupException
rtfTemplate - The report template, as a rtf document.report - The stream to write the report to.LicenseException - thrown if the license licenseKey check fails. The message will list the license check that failed.
public ProcessTxt(java.io.InputStream xmlData,
java.io.InputStream rtfTemplate,
java.io.OutputStream report)
throws DataSourceException,
LicenseException,
SetupException
xmlData - The xml data that will be placed into the report where there are xml elements.rtfTemplate - The report template, as a rtf document.report - The stream to write the report to.DataSourceException - thrown if there is a problem with the datasource.LicenseException - thrown if the license licenseKey check fails. The message will list the license check that failed.| Method Detail |
public ProcessReportAPIBase duplicate(java.io.OutputStream out)
throws AlreadyProcessedException,
LicenseException,
SetupException
duplicate in interface ProcessReportAPIBaseout - The stream to write the report to. If null will create a ByteArrayOutputStream.AlreadyProcessedException - thrown if call the process steps out of order or call ones other than data twice.LicenseException - thrown if the license licenseKey check fails. The message will list the license check that failed.public int getReportType()
getReportType in interface ProcessTxtAPIpublic boolean isUseMargins()
isUseMargins in interface ProcessTxtAPIpublic void setUseMargins(boolean useThem)
setUseMargins in interface ProcessTxtAPIuseThem - Set to true to include the page margins, false otherwise.public boolean isShowHeaders()
isShowHeaders in interface ProcessTxtAPIpublic void setShowHeaders(boolean showHeaders)
setShowHeaders in interface ProcessTxtAPIshowHeaders - true if the headers and footers are printed in the final report.public boolean isBreakPage()
isBreakPage in interface ProcessTxtAPIpublic void setBreakPage(boolean breakPage)
setBreakPage in interface ProcessTxtAPIbreakPage - true if a Ctrl-L is in the report for each page break.public java.lang.String getFont()
getFont in interface ProcessTxtAPIpublic void setFont(java.lang.String font)
setFont in interface ProcessTxtAPIfont - The name of the font used to format txt output.public int getFontSize()
getFontSize in interface ProcessTxtAPIpublic void setFontSize(int twips)
setFontSize in interface ProcessTxtAPItwips - The size of the font used to format txt output in twips.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||