org.teleal.lemma.reader.content.filter
Class CleanupFilter
java.lang.Object
org.teleal.lemma.reader.content.filter.CleanupFilter
- All Implemented Interfaces:
- ContentFilter
public class CleanupFilter
- extends Object
- implements ContentFilter
Removes fragment labels, whitespaces, etc. from citation source text.
- Author:
- Christian Bauer
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CleanupFilter
public CleanupFilter(Pattern fragmentLabelPattern)
getFragmentLabelPattern
public Pattern getFragmentLabelPattern()
filter
public String[] filter(String[] source,
CitationAnchor citation)
- Specified by:
filter in interface ContentFilter
removeFragmentComment
protected String removeFragmentComment(String line)
Copyright © 2011 Teleal GmbH, Switzerland. All Rights Reserved.