Inserts content from the given stream. If
doc
is
an instance of HTMLDocument, this will read
HTML 3.2 text. Inserting HTML into a non-empty document must be inside
the body Element, if you do not insert into the body an exception will
be thrown. When inserting into a non-empty document all tags outside
of the body (head, title) will be dropped.
Parameters:
-
in - the stream to read from
-
doc - the destination for the insertion
-
pos - the location in the document to place the
content
Throws:
-
IOException - on any I/O error
-
BadLocationException - if pos represents an invalid
location within the document
-
RuntimeException - (will eventually be a BadLocationException)
if pos is invalid