| java.lang.Object org.netbeans.lib.collab.util.HTMLDocumentLoader
HTMLDocumentLoader | public class HTMLDocumentLoader (Code) | | Html Document Loader for optimized parsing and loading of Html files and url's
TODO -- need to thread loading of document
|
Method Summary | |
protected String | getNewCharSet(ChangedCharSetException e) Returns a String id for a new Character Set
If none is found, a guess ("8859_1") will be returned
The event contains the content type
plus ";" plus qualifiers which may
contain a "charset" directive. | public synchronized HTMLEditorKit.Parser | getParser() | public synchronized HTMLEditorKit.ParserCallback | getParserCallback(HTMLDocument doc) | public void | insertHTML(HTMLDocument doc, Element parent, int offset, String html, HTML.Tag insertTag) Inserts a string of HTML into the document at the given position.
parent is used to identify the tag to look for in
html (unless insertTag, in which case it
is used). | public HTMLDocument | loadDocument(HTMLDocument doc, URL url, String charSet) | public HTMLDocument | loadDocument(URL url, String charSet) | public HTMLDocument | loadDocument(URL url) | public HTMLDocument | loadDocument(String text) | public HTMLDocument | loadDocument(HTMLDocument doc, String text, boolean use_cache) | public void | setImageCache(ImageDictionary d) |
IMAGE_CACHE_PROPERTY | final static String IMAGE_CACHE_PROPERTY(Code) | | |
getNewCharSet | protected String getNewCharSet(ChangedCharSetException e)(Code) | | Returns a String id for a new Character Set
If none is found, a guess ("8859_1") will be returned
The event contains the content type
plus ";" plus qualifiers which may
contain a "charset" directive.
Parameters: ChangedCharSetException - e |
insertHTML | public void insertHTML(HTMLDocument doc, Element parent, int offset, String html, HTML.Tag insertTag) throws BadLocationException, IOException(Code) | | Inserts a string of HTML into the document at the given position.
parent is used to identify the tag to look for in
html (unless insertTag, in which case it
is used). If parent is a leaf this can have
unexpected results.
|
loadDocument | public HTMLDocument loadDocument(URL url) throws IOException(Code) | | Returns a new HtmlDoc with the given URL inserted and rendered into the new doc
Parameters: URL - url |
loadDocument | public HTMLDocument loadDocument(HTMLDocument doc, String text, boolean use_cache) throws IOException(Code) | | Returns a new HtmlDoc with the given text inserted and rendered into the given doc
if the boolean parameter use_cache == true, any images will be flushed if reloaded
Parameters: HTMLDocument - doc, String text, boolean use_cache |
|
|