|
Style Intelligence v12.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectinetsoft.report.io.AbstractGenerator
inetsoft.report.io.HTMLGenerator
public class HTMLGenerator
Generates an HTML page from a report or a set of StylePages.
| Field Summary | |
|---|---|
protected PrintWriter |
writer
|
| Fields inherited from class inetsoft.report.io.AbstractGenerator |
|---|
docInfo |
| Constructor Summary | |
|---|---|
HTMLGenerator(OutputStream output)
Create an HTMLGenerator. |
|
HTMLGenerator(OutputStream output,
boolean pagination)
Create an HTMLGenerator. |
|
| Method Summary | |
|---|---|
protected void |
cacheImage(Rectangle bounds,
Painter painter,
Image buf)
Cache same image with same size and from same painter. |
void |
cancel()
Cancel the generation if one is going on. |
void |
dispose()
Dispose the generator. |
protected void |
finalize()
Finalize the generator. |
void |
generate(Enumeration pages)
Write a collection of pages to html. |
void |
generate(ReportSheet sheet)
Export a report. |
void |
generate(ReportSheet sheet,
Enumeration pages)
Write a collection of pages to text. |
protected Image |
getCachedImage(Rectangle bounds,
Painter painter)
get the cached image with same size and from same painter. |
byte[] |
getFile(String fname)
Get a cached data file (e.g. |
protected String |
getImageFileName(String suffix)
Return the image file name. |
Collection |
getImages()
Get the list of the images generated as a part of the report. |
protected String |
getImageURI(String name)
Get the URI to access a generated image. |
String |
getImageURIPrefix()
Get the URI prefix for generated image files. |
protected OutputStream |
getOutputStream(String fname)
Get an output stream for an image or resource. |
Dimension |
getPageSize()
Deprecated. replaced by ReportSheet.getPageSize(). |
protected String |
getResourceURI(String name)
Get the URI to access a resource. |
boolean |
isForEmail()
A true value will change the HTML export process to support inlined-HTML within email. |
boolean |
isIncludeScript()
Get includeScript |
void |
setDataOutput(Object loc)
Set the location for data files, such as images. |
void |
setForEmail(boolean forEmail)
Controls whether the HTML generation should export the HTML to support inlined-HTML within the email body. |
void |
setImageURIPrefix(String prefix)
Set the URI prefix for generated image files. |
void |
setIncludeScript(boolean includeScript)
Set includeScript |
void |
setOutput(OutputStream output)
Set the output stream of this generator. |
void |
setPageSize(Size size)
Deprecated. replaced by ReportSheet.setPageSize(). |
protected String |
writeImage(Image buf)
Write an image to a file. |
protected void |
writePages(Enumeration pages)
Write a set of pages to an HTML file. |
| Methods inherited from class inetsoft.report.io.AbstractGenerator |
|---|
addProgressListener, fireProgressEvent, getCachePages, getOutput, getReportCache, getReportId, removeProgressListener, setDocumentInfo, setReportCache, setReportId |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected PrintWriter writer
| Constructor Detail |
|---|
public HTMLGenerator(OutputStream output)
output - the output stream.
public HTMLGenerator(OutputStream output,
boolean pagination)
output - the output stream.pagination - false if generate without any page break,
page header or page footer.| Method Detail |
|---|
public void setOutput(OutputStream output)
setOutput in interface GeneratorsetOutput in class AbstractGeneratorpublic void setPageSize(Size size)
size - Size object in inches.public Dimension getPageSize()
public void setDataOutput(Object loc)
public void setImageURIPrefix(String prefix)
public String getImageURIPrefix()
public byte[] getFile(String fname)
public void generate(ReportSheet sheet)
throws IOException
sheet - report to export.
IOException
public void generate(Enumeration pages)
throws IOException
IOException
public void generate(ReportSheet sheet,
Enumeration pages)
throws IOException
IOExceptionpublic void setIncludeScript(boolean includeScript)
public boolean isIncludeScript()
protected void writePages(Enumeration pages)
throws IOException
pages - a collection of StylePage objects.
IOExceptionpublic void cancel()
protected String getImageFileName(String suffix)
suffix - image type suffix, including a dot, e.g. ".png".protected String writeImage(Image buf)
public Collection getImages()
protected String getResourceURI(String name)
protected String getImageURI(String name)
protected OutputStream getOutputStream(String fname)
throws IOException
IOException
protected Image getCachedImage(Rectangle bounds,
Painter painter)
protected void cacheImage(Rectangle bounds,
Painter painter,
Image buf)
public void dispose()
protected void finalize()
throws Throwable
finalize in class ObjectThrowablepublic boolean isForEmail()
public void setForEmail(boolean forEmail)
forEmail - true to encode for email body
|
Copyright © 1996-2014 InetSoft Technology Corp. All Rights Reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||