|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.6.0) E13403-07 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.javatools.editor.print.DocumentToHTMLGenerator
public class DocumentToHTMLGenerator
The DocumentToHTMLGenerator
class provides generation
of HTML output based on the syntax highlighting of a
BasicDocument
instance. Clients can specify the options
to use for generation by providing an HTMLGeneratorOptions
instance.
Constructor Summary | |
---|---|
DocumentToHTMLGenerator(BasicDocument document,
java.lang.String filepath)
Construct a new DocumentToHTMLGenerator for the given
document instance. |
Method Summary | |
---|---|
void |
generateHTML(java.io.OutputStream outputStream,
HTMLGeneratorOptions options)
Generates HTML output for the document specified for this generator. |
void |
generateHTML(java.io.Writer writer,
HTMLGeneratorOptions options)
Generates HTML output for the document specified for this generator. |
void |
setStyleRegistry(StyleRegistry registry)
Sets the style registry to use for generation (vs. |
void |
setTabSize(int tabSize)
Configure the tab size to use for generation (vs. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DocumentToHTMLGenerator(BasicDocument document, java.lang.String filepath)
DocumentToHTMLGenerator
for the given
document instance. The filepath is used only for display in the
file header included at the top of the HTML body section.
document
- the document to generate HTML output forfilepath
- the filepath of the document, to include in the
file header at the top of the HTML body.Method Detail |
---|
public void setStyleRegistry(StyleRegistry registry)
registry
- the style registry to usepublic void setTabSize(int tabSize)
tabSize
- the tab size to use for generationpublic void generateHTML(java.io.OutputStream outputStream, HTMLGeneratorOptions options) throws java.io.UnsupportedEncodingException, java.io.IOException
UnsupportedEncodingException
may be generated.
outputStream
- the output stream to useoptions
- the options to use for generation
java.io.UnsupportedEncodingException
- if the encoding is unknown
java.io.IOException
- if an error occurs while generating the outputpublic void generateHTML(java.io.Writer writer, HTMLGeneratorOptions options) throws java.io.IOException
writer
- the writer to useoptions
- the options to use for generation
java.io.IOException
- if an error occurs while generating the output
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.6.0) E13403-07 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |