org.teleal.lemma.reader.text
Class PlaintextReader

java.lang.Object
  extended by org.teleal.lemma.reader.AbstractReader
      extended by org.teleal.lemma.reader.text.PlaintextReader
All Implemented Interfaces:
Reader

public class PlaintextReader
extends AbstractReader

Reads any text file, uses "#" as a comment marker.

This reader can process any text file, its only job is to detect fragment labels in plain text comments - which are all characters following a hash "#" character.

Author:
Christian Bauer

Field Summary
static String CONTEXT_SOURCE_DIRECTORIES
           
protected  ContentFilter[] filters
           
protected  ContentFileHandler handler
           
static Pattern PATTERN_FRAGMENT_LABEL
           
protected  ContentPrinter printer
           
 
Constructor Summary
PlaintextReader()
           
 
Method Summary
protected  void appendContent(org.teleal.common.xhtml.XHTMLElement parent, File file, CitationAnchor citation)
           
 org.teleal.common.xhtml.XHTML read(CitationAnchor citation, Context context)
           
 
Methods inherited from class org.teleal.lemma.reader.AbstractReader
addFilePath, appendTitle, getParser, getXPath, resolveFile
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONTEXT_SOURCE_DIRECTORIES

public static final String CONTEXT_SOURCE_DIRECTORIES
See Also:
Constant Field Values

PATTERN_FRAGMENT_LABEL

public static final Pattern PATTERN_FRAGMENT_LABEL

handler

protected final ContentFileHandler handler

printer

protected final ContentPrinter printer

filters

protected final ContentFilter[] filters
Constructor Detail

PlaintextReader

public PlaintextReader()
Method Detail

read

public org.teleal.common.xhtml.XHTML read(CitationAnchor citation,
                                          Context context)

appendContent

protected void appendContent(org.teleal.common.xhtml.XHTMLElement parent,
                             File file,
                             CitationAnchor citation)


Copyright © 2011 Teleal GmbH, Switzerland. All Rights Reserved.