public synchronized HTMLEditorKit . Parser getParser ( ) { if ( parser == null ) { try { Class < ? > c = Class . forName ( "javax.swing.text.html.parser.ParserDelegator" ) ; parser = ( HTMLEditorKit . Parser ) c . newInstance ( ) ; } catch ( Exception e ) { } } return parser ; }
Methods that allow customization of the parser and the callback