Serializing an HTMLDocument

Hi,I'm parsing an HTMLDocument (not XHTML compaliant) by overriding HTMLEditorKit.ParserCallback methods, and I change some attributes there.Now how can I serialize the HTMLDocument object to an output source (e.g. String/Stream/...).Thanks in advance.
[281 byte] By [Tajallya] at [2007-10-3 3:39:55]
# 1
HTMLEditorKit has a write(...) method.
camickra at 2007-7-14 21:35:27 > top of Java-index,Desktop,Core GUI APIs...