Re: save a web page
Javier Pedemonte <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.java |
|---|---|
| Message-ID | <4KmdnRIT6qv_3CfYnZ2dnUVZ_vfinZ2d__26272.204941097$1169834459$gmane$org@mozilla.org> |
For the answer to both questions, do a search on LXR for ENCODE_FLAGS_ABSOLUTE_LINKS: http://lxr.mozilla.org/mozilla/search?string=ENCODE_FLAGS_ABSOLUTE_LINKS. (The LXR page is at http://lxr.mozilla.org, and the trunk code can be searched at http://lxr.mozilla.org/mozilla). Just take a look at how this is used in existing code... javier [email protected] wrote: > 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. >