fi.karppinen.xml
Class SimpleParagraphParser
java.lang.Object
fi.karppinen.xml.SimpleParagraphParser
public class SimpleParagraphParser
- extends Object
Parses plain text with double line break paragraph breaks as XHTML 1.x paragraphs.
- Version:
- $Id: SimpleParagraphParser.java,v 1.1 2006/10/30 19:57:09 hsivonen Exp $
- Author:
- hsivonen
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
content
private char[] content
emitter
private XhtmlEmitter emitter
contentHandler
private ContentHandler contentHandler
htmlClass
private String htmlClass
SPACE
private char[] SPACE
somethingRendered
private boolean somethingRendered
SimpleParagraphParser
public SimpleParagraphParser(String content,
ContentHandler contentHandler)
parse
public void parse()
throws SAXException
- Throws:
SAXException
isSomethingRendered
public boolean isSomethingRendered()
- Returns the somethingRendered.
- Returns:
- the somethingRendered
getHtmlClass
public String getHtmlClass()
- Returns the htmlClass.
- Returns:
- the htmlClass
setHtmlClass
public void setHtmlClass(String htmlClass)
- Sets the htmlClass.
- Parameters:
htmlClass
- the htmlClass to set