save a web page

[email protected]
Newsgroups gmane.comp.mozilla.devel.java
Organization http://groups.google.com
Message-ID <1165860281.267570.162700__42098.193235188$1165860331$gmane$org@n67g2000cwd.googlegroups.com>
Hi

I have successfully embedded gecko in my java application using
xulrunner and the package org.eclipse.swt.browser. Thanks to the people
that make those available to the comunity. (I hope you can understand
my english).

I'm trying to load a web page from a url and once it's loaded I want to
save it to the filesystem. I want that the filesystem version
represents trustworthily the web version the more it cans, and without
remote references. I'm kind of confused about the encodingFlags
arguments of method nsIWebBrowserPersist.saveDocument().

Question 1 - It is ok to bitwise-or the flags like
		"nsIWebBrowserPersist.ENCODE_FLAGS_ABSOLUTE_LINKS |
nsIWebBrowserPersist.ENCODE_FLAGS_PREFORMATTED" ?

Question 2 - What would be the best flags for the filesystem version's
optimal representation of the web version?

I get incomplete information in
http://www.xulplanet.com/references/xpcomref/ifaces/nsIWebBrowserPersist.html.
Is there an other xpcom reference?

thanks in advance, and thanks to the authors of MozillaBrowser swt
class and xulrunner.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.