fi.karppinen.xml
Class SimpleParagraphParser

java.lang.Object
  extended by 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

Field Summary
private  char[] content
           
private  ContentHandler contentHandler
           
private  XhtmlEmitter emitter
           
private  String htmlClass
           
private  boolean somethingRendered
           
private  char[] SPACE
           
 
Constructor Summary
SimpleParagraphParser(String content, ContentHandler contentHandler)
           
 
Method Summary
 String getHtmlClass()
          Returns the htmlClass.
 boolean isSomethingRendered()
          Returns the somethingRendered.
 void parse()
           
 void setHtmlClass(String htmlClass)
          Sets the htmlClass.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

content

private char[] content

emitter

private XhtmlEmitter emitter

contentHandler

private ContentHandler contentHandler

htmlClass

private String htmlClass

SPACE

private char[] SPACE

somethingRendered

private boolean somethingRendered
Constructor Detail

SimpleParagraphParser

public SimpleParagraphParser(String content,
                             ContentHandler contentHandler)
Method Detail

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