|
Copyright © 2000, 2009, Oracle and/or its affiliates. All rights reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.beasys.commerce.util.dom.EntityFixer
@Deprecated public class 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. |
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 Use StringUtils |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static EntityFixer instance
protected static final String[][] defReplaceEntities
protected Hashtable entities
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 removeEntityMapping(String chars)
public String getEntityMapping(String chars)
public String fixEntities(String in)
public static String replace(String inStr, String find, String replace)
StringUtils
public static EntityFixer getInstance()
|
Copyright © 2000, 2009, Oracle and/or its affiliates. All rights reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |