Writes content from a document to the given stream
in a format appropriate for this kind of content handler.
Parameters:
-
out - The stream to write to
-
doc - The source for the write.
-
pos - The location in the document to fetch the
content >= 0.
-
len - The amount to write out >= 0.
Throws:
-
IOException - on any I/O error
-
BadLocationException - if pos represents an invalid
location within the document.