MinimalHTMLWriter is a fallback writer used by the HTMLEditorKit to write out HTML for a document that is a not produced by the EditorKit.
The format for the document is:
<html> <head> <style> <!-- list of named styles p.normal { font-family: SansSerif; margin-height: 0; font-size: 14 } --> </style> </head> <body> <p style=normal> Bold, italic, and underline attributes of the run are emitted as HTML tags. The remaining attributes are emitted as part of the style attribute of a <span> tag. The syntax is similar to inline styles. </p> </body> </html>
MinimalHTMLWriter is a fallback writer used by the
HTMLEditorKit to write out HTML for a document that
is a not produced by the EditorKit.
The format for the document is:
<html>
<head>
<style>
<!-- list of named styles
p.normal {
font-family: SansSerif;
margin-height: 0;
font-size: 14
}
-->
</style>
</head>
<body>
<p style=normal>
Bold, italic, and underline attributes
of the run are emitted as HTML tags.
The remaining attributes are emitted as
part of the style attribute of a <span> tag.
The syntax is similar to inline styles.
</p>
</body>
</html>(->minimal-html-writer w doc)(->minimal-html-writer w doc pos len)Constructor.
Creates a new MinimalHTMLWriter.
w - Writer - java.io.Writer
doc - StyledDocument - javax.swing.text.StyledDocument
pos - The location in the document to fetch the content. - int
len - The amount to write out. - int
Constructor. Creates a new MinimalHTMLWriter. w - Writer - `java.io.Writer` doc - StyledDocument - `javax.swing.text.StyledDocument` pos - The location in the document to fetch the content. - `int` len - The amount to write out. - `int`
(write this)Generates HTML output from a StyledDocument.
throws: java.io.IOException - on any I/O error
Generates HTML output from a StyledDocument. throws: java.io.IOException - on any I/O error
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |