Class DictionaryParser
java.lang.Object
org.tinyradius.core.dictionary.parse.DictionaryParser
public class DictionaryParser
extends java.lang.Object
Parses a dictionary in Radiator format and fills a WritableDictionary.
-
Method Summary
Modifier and Type Method Description static DictionaryParser
newClasspathParser()
static DictionaryParser
newFileParser()
WritableDictionary
parseDictionary(java.lang.String resource)
Returns a new dictionary filled with the contents from the given input stream.
-
Method Details
-
newClasspathParser
-
newFileParser
-
parseDictionary
Returns a new dictionary filled with the contents from the given input stream.- Parameters:
resource
- location of resource, resolved depending onResourceResolver
- Returns:
- dictionary object
- Throws:
java.io.IOException
- parse error reading from input
-