|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.jrefinery.report.targets.table.html.StreamHtmlFilesystem
The StreamHtmlFilesystem is an Implementation for streamed HTML output.
The generated content is a single Html-Stream, without any external generated data. The generated HTML Stream has an inline style sheet definition and supports external images. The external images must be loaded from HTTP, HTTPS or FTP sources, generated images or images loaded from the local filesystem are not supported.
Constructor Summary | |
StreamHtmlFilesystem(java.io.OutputStream root)
Creates a new StreamHtmlFilesystem for the given output stream. |
Method Summary | |
void |
close()
Close the Filesystem and write any buffered content. |
HtmlReferenceData |
createCSSReference(java.lang.String styleSheet)
Returns an inline stylesheet reference. |
HtmlReferenceData |
createImageReference(ImageReference reference)
Creates a HtmlReference for ImageData. |
java.io.OutputStream |
getRootStream()
The root stream is used to write the main HTML-File. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public StreamHtmlFilesystem(java.io.OutputStream root)
root
- the output stream for the main file.Method Detail |
public java.io.OutputStream getRootStream() throws java.io.IOException
getRootStream
in interface HtmlFilesystem
java.io.IOException
- if an IO error occured, while providing the root stream.public HtmlReferenceData createImageReference(ImageReference reference) throws java.io.IOException
This implementation returns the external reference for all image references which are loaded from an HTTP, HTTPS or FTP source.
createImageReference
in interface HtmlFilesystem
reference
- the image reference containing the data.
java.io.IOException
- if there is an I/O problem.public HtmlReferenceData createCSSReference(java.lang.String styleSheet) throws java.io.IOException
createCSSReference
in interface HtmlFilesystem
styleSheet
- the stylesheet data, which should be referenced.
java.io.IOException
- if there is an I/O problem.public void close() throws java.io.IOException
close
in interface HtmlFilesystem
java.io.IOException
- if the close operation failed.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |