public class PlaintextReader extends AbstractReader
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.
| Modifier and Type | Field and Description |
|---|---|
static String |
CONTEXT_SOURCE_DIRECTORIES |
protected ContentFilter[] |
filters |
protected ContentFileHandler |
handler |
static Pattern |
PATTERN_FRAGMENT_LABEL |
protected ContentPrinter |
printer |
| Constructor and Description |
|---|
PlaintextReader() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
appendContent(org.seamless.xhtml.XHTMLElement parent,
File file,
CitationAnchor citation) |
org.seamless.xhtml.XHTML |
read(CitationAnchor citation,
Context context) |
addFilePath, appendTitle, getParser, getXPath, isGenerateId, resolveFilepublic static final String CONTEXT_SOURCE_DIRECTORIES
public static final Pattern PATTERN_FRAGMENT_LABEL
protected final ContentFileHandler handler
protected final ContentPrinter printer
protected final ContentFilter[] filters
public org.seamless.xhtml.XHTML read(CitationAnchor citation, Context context)
protected void appendContent(org.seamless.xhtml.XHTMLElement parent,
File file,
CitationAnchor citation)
Copyright © 2015 4th Line GmbH, Switzerland. All Rights Reserved.