| java.lang.Object javolution.xml.stream.EntitiesImpl
EntitiesImpl | final class EntitiesImpl implements Reusable(Code) | | This class holds defined entities while parsing.
author: Jean-Marie Dautelle version: 4.0, June 16, 2006 |
Method Summary | |
public Map | getEntitiesMapping() Returns the custom entity mapping. | public int | getMaxLength() Returns the length of the largest entity. | public int | replaceEntity(char[] buffer, int start, int length) Replaces the entity at the specified position. | public void | reset() | public void | setEntitiesMapping(Map entityToReplacementText) Defines a custom entity mapping. |
EntitiesImpl | EntitiesImpl()(Code) | | Default constructor.
|
getEntitiesMapping | public Map getEntitiesMapping()(Code) | | Returns the custom entity mapping.
the entity (e.g. "copy") to replacement text (e.g. "©") mapping (both CharSequence). |
getMaxLength | public int getMaxLength()(Code) | | Returns the length of the largest entity.
the length largest entity. |
replaceEntity | public int replaceEntity(char[] buffer, int start, int length) throws XMLStreamException(Code) | | Replaces the entity at the specified position.
The five predefined XML entities "<", ">", "'",
""", "&" as well as character refererences
(decimal or hexadecimal) are always recognized.
Parameters: buffer - the data buffer. Parameters: start - the index of entity first character (index of '&') the length of the replacement entity (including ';') throws: XMLStreamException - if the entity is not recognized. |
reset | public void reset()(Code) | | |
setEntitiesMapping | public void setEntitiesMapping(Map entityToReplacementText)(Code) | | Defines a custom entity mapping.
Parameters: entityToReplacementText - the entity (e.g. "copy") to replacement text (e.g. "©") mapping (both CharSequence). |
|
|