Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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

Constructor Summary
`CleanupFilter(Pattern fragmentLabelPattern)`

Method Summary
`String[]` | `filter(String[] source, CitationAnchor citation)`
`Pattern` | `getFragmentLabelPattern()`
`protected String` | `removeFragmentComment(String line)`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### CleanupFilter

    public CleanupFilter(Pattern fragmentLabelPattern)

Method Detail

### getFragmentLabelPattern

    public Pattern getFragmentLabelPattern()

### filter

    public String[] filter(String[] source,
                           CitationAnchor citation)

  Specified by:
    `filter` in interface `ContentFilter`

### removeFragmentComment

    protected String removeFragmentComment(String line)

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

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