net.sf.japaki.text
Class LineFeed

java.lang.Object
  extended by net.sf.japaki.text.AbstractParser<Object>
      extended by net.sf.japaki.text.LineFeed
All Implemented Interfaces:
Parser<Object>

public class LineFeed
extends AbstractParser<Object>

Inserts a line break.


Method Summary
static Parser<Object> getInstance()
          Returns the singleton instance of this class.
protected  void parseIt(ParseReader in, Object target)
          Parses text starting at the specified position.
 String treeView()
          Returns a tree view of this parser.
protected  void writeIt(ParseWriter out, Object source)
          Formats the source object and writes it into the output stream
 
Methods inherited from class net.sf.japaki.text.AbstractParser
getLogger, handleException, parse, toString, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getInstance

public static Parser<Object> getInstance()
Returns the singleton instance of this class.

Returns:
line break parser

parseIt

protected void parseIt(ParseReader in,
                       Object target)
                throws IOException,
                       ParseException
Description copied from class: AbstractParser
Parses text starting at the specified position.

Specified by:
parseIt in class AbstractParser<Object>
Parameters:
in - the position where to start parsing
target - place where the parsed object is stored.
Throws:
IOException - if an I/O error occurs
ParseException - if the beginning of the string in in cannot be parsed

writeIt

protected void writeIt(ParseWriter out,
                       Object source)
                throws IOException
Description copied from class: AbstractParser
Formats the source object and writes it into the output stream

Specified by:
writeIt in class AbstractParser<Object>
Parameters:
out - the stream and position where to put the formatted text.
source - source object
Throws:
IOException - if an I/O error occurs

treeView

public String treeView()
Description copied from interface: Parser
Returns a tree view of this parser.

Returns:
a tree view of this parser