public class PropertiesFileParser extends Object
Modifier and Type | Field and Description |
---|---|
static Pattern |
CLASS_REFERENCE_REGEX |
static Pattern |
EMBED_REGEX |
Constructor and Description |
---|
PropertiesFileParser(IWorkspace workspace)
Constructor
|
Modifier and Type | Method and Description |
---|---|
ResourceBundleFileNode |
parse(String filePath,
String locale,
Reader reader,
Collection<ICompilerProblem> problems)
This method attempts to parse a .properties file
using the same rules as Java, except that the file
is assumed to have UTF-8 encoding.
|
public static final Pattern CLASS_REFERENCE_REGEX
public static final Pattern EMBED_REGEX
public PropertiesFileParser(IWorkspace workspace)
public ResourceBundleFileNode parse(String filePath, String locale, Reader reader, Collection<ICompilerProblem> problems)
filePath
- path of the properties file to parse.locale
- locale of the file if it is locale dependent, otherweise null
reader
- reader that wraps an open stream to the file to parse.problems
- collection that is used to store problems that occur
during parsingCopyright © 2016 The Apache Software Foundation. All rights reserved.