public class ParseTags extends Object
<appNG:searchable>
-tags from JSP-files.Constructor and Description |
---|
ParseTags(String tagPrefix)
Creates a new
ParseTags using the given tag-prefix (usually appNG ). |
Modifier and Type | Method and Description |
---|---|
protected Map<String,StringBuilder> |
parse(File file) |
Map<String,StringBuilder> |
parse(InputStream is)
Parses the given
InputStream and returns a Map containing the name of a field as a key and a
StringBuilder (the text content of the <appNG:searchable> -tag) as the value. |
public ParseTags(String tagPrefix)
ParseTags
using the given tag-prefix (usually appNG
).tagPrefix
- the tag prefixpublic Map<String,StringBuilder> parse(InputStream is) throws IOException
InputStream
and returns a Map
containing the name of a field as a key and a
StringBuilder
(the text content of the <appNG:searchable>
-tag) as the value.is
- the InputStream
Map
of fieldsIOException
- if such an error occurred while reading/parsing the streamprotected Map<String,StringBuilder> parse(File file) throws IOException
IOException
Copyright © 2011–2019 aiticon GmbH. All rights reserved.