|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The HtmlFilesystem provides an abstraction layer for the various storage methods implemented for the HtmlProducer.
DirectoryHtmlFilesystem
Writes the generated Html-File and the supplementary data files (images and external Stylesheet definition) into a directory. The data files can be written into a separated data directory.
Writes a single generated Html-File into the supplied stream. The Stylesheet is inlined in the html file, no other external data files are generated. Images, which are loaded from an valid URL are included in the file, any other images are ignored.
Similiar to the DirectoryHtmlFilesystem, the generated Html-File and the supplementary data files (images and external Stylesheet definition) into a directory in a ZIP-File. The data files can be written into a separated data directory within the ZIP-File.
Method Summary | |
void |
close()
Close the Filesystem and write any buffered content. |
HtmlReferenceData |
createCSSReference(java.lang.String styleSheet)
Creates a HtmlReference for StyleSheetData. |
HtmlReferenceData |
createImageReference(ImageReference reference)
Creates a HtmlReference for ImageData. |
java.io.OutputStream |
getRootStream()
The root stream is used to write the main HTML-File. |
Method Detail |
public java.io.OutputStream getRootStream() throws java.io.IOException
java.io.IOException
- if an IO error occured, while providing the root stream.public HtmlReferenceData createImageReference(ImageReference reference) throws java.io.IOException
reference
- the image reference containing the data.
java.io.IOException
- if IO errors occured while creating the reference.public HtmlReferenceData createCSSReference(java.lang.String styleSheet) throws java.io.IOException
styleSheet
- the stylesheet data, which should be referenced.
java.io.IOException
- if IO errors occured while creating the reference.public void close() throws java.io.IOException
java.io.IOException
- if the close operation failed.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |