Package org.appng.search.indexer
Class ParseTags
- java.lang.Object
-
- org.appng.search.indexer.ParseTags
-
public class ParseTags extends Object
Utility-class used to parse<appNG:searchable>
-tags from JSP-files.- Author:
- Matthias Müller
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Map<String,StringBuilder>
parse(File file)
Map<String,StringBuilder>
parse(InputStream is)
Parses the givenInputStream
and returns aMap
containing the name of a field as a key and aStringBuilder
(the text content of the<appNG:searchable>
-tag) as the value.
-
-
-
Constructor Detail
-
ParseTags
public ParseTags(String tagPrefix)
Creates a newParseTags
using the given tag-prefix (usuallyappNG
).- Parameters:
tagPrefix
- the tag prefix
-
-
Method Detail
-
parse
public Map<String,StringBuilder> parse(InputStream is) throws IOException
Parses the givenInputStream
and returns aMap
containing the name of a field as a key and aStringBuilder
(the text content of the<appNG:searchable>
-tag) as the value.- Parameters:
is
- theInputStream
- Returns:
- the
Map
of fields - Throws:
IOException
- if such an error occurred while reading/parsing the stream
-
parse
protected Map<String,StringBuilder> parse(File file) throws IOException
- Throws:
IOException
-
-