All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----jp.kyasu.graphics.html.HTMLWriter
HTMLWriter
class implements the writer that saves the
HTMLText
object as a HTML document ('text/html
').
For example:
HTMLText htmlText = ...; HTMLWriter htmlWriter = new HTMLWriter(htmlText); try { htmlWriter.writeTo(new File("index.html")); } catch (IOException e) { return; }
text/html
')
into the specified file.
text/html
')
into the specified file with the specified encoding.
text/html
')
into the specified writer with the base file.
public static final String GENERATOR
public HTMLWriter(HTMLText htmlText)
public void writeTo(File file) throws IOException
text/html
')
into the specified file.
public void writeTo(File file, String encodingName) throws IOException
text/html
')
into the specified file with the specified encoding.
public void writeTo(File baseFile, Writer writer) throws IOException
text/html
')
into the specified writer with the base file.
src
attribute of
the IMG
tag are genarated as a
pathname relative to the baseFile.
All Packages Class Hierarchy This Package Previous Next Index