org.apache.jetspeed.rewriter.html
Class SwingParserAdaptor.Callback
java.lang.Object
javax.swing.text.html.HTMLEditorKit.ParserCallback
org.apache.jetspeed.rewriter.html.SwingParserAdaptor.Callback
- Enclosing class:
- SwingParserAdaptor
- class SwingParserAdaptor.Callback
- extends HTMLEditorKit.ParserCallback
Method Summary |
private SwingParserAdaptor.Callback |
addToResult(char[] txt)
|
private SwingParserAdaptor.Callback |
addToResult(Object txt)
|
private void |
appendTagToResult(HTML.Tag tag,
MutableAttributeSet attrs)
|
private void |
convertURLS(HTML.Tag tag,
MutableAttributeSet attrs)
|
void |
flush()
|
private void |
formatLine(HTML.Tag tag)
|
void |
getResult()
|
void |
handleComment(char[] values,
int param)
|
void |
handleEndOfLineString(String str)
|
void |
handleEndTag(HTML.Tag htmlTag,
int position)
|
void |
handleError(String str,
int param)
|
void |
handleSimpleTag(HTML.Tag htmlTag,
MutableAttributeSet attrs,
int param)
|
void |
handleStartTag(HTML.Tag htmlTag,
MutableAttributeSet attrs,
int position)
|
void |
handleText(char[] values,
int param)
|
private void |
write(String text)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
inForm
private boolean inForm
inScript
private boolean inScript
strip
private boolean strip
simpleTag
private boolean simpleTag
stripTag
private String stripTag
writer
private Writer writer
SwingParserAdaptor.Callback
private SwingParserAdaptor.Callback(Writer writer)
handleText
public void handleText(char[] values,
int param)
write
private void write(String text)
throws IOException
- Throws:
IOException
handleSimpleTag
public void handleSimpleTag(HTML.Tag htmlTag,
MutableAttributeSet attrs,
int param)
handleStartTag
public void handleStartTag(HTML.Tag htmlTag,
MutableAttributeSet attrs,
int position)
handleEndTag
public void handleEndTag(HTML.Tag htmlTag,
int position)
handleError
public void handleError(String str,
int param)
handleComment
public void handleComment(char[] values,
int param)
handleEndOfLineString
public void handleEndOfLineString(String str)
formatLine
private void formatLine(HTML.Tag tag)
addToResult
private SwingParserAdaptor.Callback addToResult(Object txt)
addToResult
private SwingParserAdaptor.Callback addToResult(char[] txt)
getResult
public void getResult()
flush
public void flush()
throws BadLocationException
- Throws:
BadLocationException
appendTagToResult
private void appendTagToResult(HTML.Tag tag,
MutableAttributeSet attrs)
convertURLS
private void convertURLS(HTML.Tag tag,
MutableAttributeSet attrs)
Copyright © 1999-2005 Apache Software Foundation. All Rights Reserved.