|
© 2005 BEA Systems, Inc. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bea.p13n.content.document.ref.loader.EntityFixer
A utility class for replacing standard XML entities with their character values.
| Field Summary | |
protected static String[][] |
defReplaceEntities
Deprecated. Default XML/HTML entities that represent special character sequences. |
protected Hashtable |
entities
Deprecated. Our character to entity mapping. |
protected static EntityFixer |
instance
Deprecated. The singleton EntityFixer. |
| Constructor Summary | |
EntityFixer()
Deprecated. Constructor. |
|
| Method Summary | |
String |
addEntityMapping(String chars,
String value)
Deprecated. Add a characters to value mapping (i.e. "%" -> "&pect;") |
String |
fixEntities(String in)
Deprecated. |
String |
getEntityMapping(String chars)
Deprecated. Retrive the a current entity mapping. |
static EntityFixer |
getInstance()
Deprecated. Get the singleton instance. |
String |
removeEntityMapping(String chars)
Deprecated. Remove an entity mapping. |
static String |
replace(String inStr,
String find,
String replace)
Deprecated. String search and replace method. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected static final String[][] defReplaceEntities
protected Hashtable entities
protected static EntityFixer instance
| Constructor Detail |
public EntityFixer()
This will initialize the entity mapping with the default values.
| Method Detail |
public String addEntityMapping(String chars,
String value)
chars - the characters ("%").value - the string to replace chars with ("&pect;").
IllegalArgumentException - thrown if chars is "&".public String fixEntities(String in)
public String getEntityMapping(String chars)
public static EntityFixer getInstance()
public String removeEntityMapping(String chars)
public static String replace(String inStr,
String find,
String replace)
|
© 2005 BEA Systems, Inc. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||