public class ReferenceResolver
extends java.lang.Object
$Id $
Modifier and Type | Class and Description |
---|---|
class |
ReferenceResolver.ResolverResults
Returned by ReferenceResolver.resolve storing the resolved input string and
a list of errors describing references that could not be resolved.
|
Modifier and Type | Field and Description |
---|---|
static java.util.Map |
charEntityMap
Description of the Field
|
Constructor and Description |
---|
ReferenceResolver()
Constructor for the ReferenceResolver object
|
Modifier and Type | Method and Description |
---|---|
static java.util.Map |
getCharEntityMap()
Gets a mapping from HTML 4 character entity references to their numeric
equivalents (see http://www.w3.org/TR/REC-html40/sgml/entities.html#h-24.3.1)
|
static void |
main(java.lang.String[] args)
The main program for the ReferenceResolver class
|
ReferenceResolver.ResolverResults |
resolve(java.lang.String in)
Resolves a string by replacing numeric (e.g., ©) and character
references (e.g., δ) with thier equivalent unicode representation.
|
static java.lang.String |
unescapeAmpersands(java.lang.String in)
Escape all escaped ampersands (&) as a preprocessing step in resolution
of entity references.
|
public ReferenceResolver()
public ReferenceResolver.ResolverResults resolve(java.lang.String in)
in
- Description of the Parameterpublic static java.lang.String unescapeAmpersands(java.lang.String in)
in
- String to be processedpublic static void main(java.lang.String[] args) throws java.lang.Exception
args
- The command line argumentsjava.lang.Exception
- Description of the Exceptionpublic static java.util.Map getCharEntityMap()