org.inria.ns.reflex.xml.filter.helpers
Class LineReader

java.lang.Object
  extended by org.inria.ns.reflex.xml.filter.helpers.LineReader
All Implemented Interfaces:
Filter, StandaloneFilter

public class LineReader
extends Object
implements Filter, StandaloneFilter

A LineReader is a filter that fire SAX events from a raw text input.

It fires a startDocument() event then characters() events for each line read in the input then an endDocument() event.

Author:
Philippe Poulard
See Also:
Names.LINE_READER_FILTER

Constructor Summary
LineReader()
          Create a new line reader.
 
Method Summary
 StandaloneProducer getSAXSource(InputSource inputSource)
          Return a SAX producer that fire characters events for each line read in the input.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LineReader

public LineReader()
Create a new line reader.

Method Detail

getSAXSource

public StandaloneProducer getSAXSource(InputSource inputSource)
Return a SAX producer that fire characters events for each line read in the input.

Specified by:
getSAXSource in interface StandaloneFilter
Parameters:
inputSource - The source to read.
Returns:
A SAX producer.
See Also:
StandaloneFilter.getSAXSource(InputSource)