| javax.swing.text.html.HTMLEditorKit javax.swing.text.html.parser.ParserDelegator
createDTD | protected static DTD createDTD(DTD dtd, String name)(Code) | | Reads the DTD content from the file called name + "bdtd"
located in the classpath (if there is any) and fills the dtd
with it. Then, returns dtd .
The complete behavior is the following:
- Finds the resource (the ASN1 binary file) in the classpath by
appending ".bdtd" to
name .
- Creates an stream from this file and adds the information contained
into
dtd by calling its
DTD.read(DataInputStream) method
- Returns the
dtd
Notice that this method catches any
Exception and ignores it.
It's the same behavior as the reference implementation.
Parameters: dtd - the dtd to be filled Parameters: name - the name of the file located in the classpath (without .bdtd) the dtd |
Methods inherited from javax.swing.text.html.HTMLEditorKit | public Object clone()(Code)(Java Doc) public Document createDefaultDocument()(Code)(Java Doc) protected void createInputAttributes(Element elem, MutableAttributeSet set)(Code)(Java Doc) public void deinstall(JEditorPane pane)(Code)(Java Doc) public AccessibleContext getAccessibleContext()(Code)(Java Doc) public Action[] getActions()(Code)(Java Doc) public String getContentType()(Code)(Java Doc) public Cursor getDefaultCursor()(Code)(Java Doc) public MutableAttributeSet getInputAttributes()(Code)(Java Doc) public Cursor getLinkCursor()(Code)(Java Doc) protected Parser getParser()(Code)(Java Doc) public StyleSheet getStyleSheet()(Code)(Java Doc) public ViewFactory getViewFactory()(Code)(Java Doc) public void insertHTML(HTMLDocument doc, int offset, String html, int popDepth, int pushDepth, HTML.Tag insertTag) throws BadLocationException, IOException(Code)(Java Doc) public void install(JEditorPane pane)(Code)(Java Doc) public boolean isAutoFormSubmission()(Code)(Java Doc) public void read(Reader in, Document doc, int pos) throws IOException, BadLocationException(Code)(Java Doc) public void setAutoFormSubmission(boolean auto)(Code)(Java Doc) public void setDefaultCursor(Cursor cursor)(Code)(Java Doc) public void setLinkCursor(Cursor cursor)(Code)(Java Doc) public void setStyleSheet(StyleSheet ss)(Code)(Java Doc) public void write(Writer out, Document doc, int pos, int len) throws IOException, BadLocationException(Code)(Java Doc)
|
|
|