|
Copyright © 2008 BEA Systems, Inc. All Rights Reserved | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.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 See BEA Commerce product offering |
protected Hashtable |
entities
Deprecated See BEA Commerce product offering |
protected static EntityFixer |
instance
Deprecated See BEA Commerce product offering |
| Constructor Summary | |
|---|---|
EntityFixer()
Deprecated See BEA Commerce product offering |
|
| Method Summary | |
|---|---|
String |
addEntityMapping(String chars,
String value)
Deprecated See BEA Commerce product offering |
String |
fixEntities(String in)
Deprecated See BEA Commerce product offering |
String |
getEntityMapping(String chars)
Deprecated See BEA Commerce product offering |
static EntityFixer |
getInstance()
Deprecated See BEA Commerce product offering |
String |
removeEntityMapping(String chars)
Deprecated See BEA Commerce product offering |
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 © 2008 BEA Systems, Inc. All Rights Reserved | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||