|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object gnu.xml.pipeline.EventFilter fi.karppinen.xml.AstralContentFilter
public class AstralContentFilter
This filter replaces astral characters with U+FFFD REPLACEMENT CHARACTER. This filter is useful when preparing data for a recipient that does not handle astral characters gracefully.
Field Summary | |
---|---|
private static char[] |
REPLACEMENT_CHARACTER
|
Fields inherited from class gnu.xml.pipeline.EventFilter |
---|
DECL_HANDLER, FEATURE_URI, LEXICAL_HANDLER, PROPERTY_URI |
Constructor Summary | |
---|---|
AstralContentFilter()
Constructs a new AstralContentFilter . |
|
AstralContentFilter(gnu.xml.pipeline.EventConsumer consumer)
Constructs a new AstralContentFilter chaining it to an
EventConsumer . |
Method Summary | |
---|---|
void |
characters(char[] ch,
int start,
int length)
|
Methods inherited from class gnu.xml.pipeline.EventFilter |
---|
attributeDecl, bind, chainTo, comment, elementDecl, endCDATA, endDocument, endDTD, endElement, endEntity, endPrefixMapping, externalEntityDecl, getContentHandler, getDocumentLocator, getDTDHandler, getErrorHandler, getNext, getProperty, ignorableWhitespace, internalEntityDecl, notationDecl, processingInstruction, setContentHandler, setDocumentLocator, setDTDHandler, setErrorHandler, setProperty, skippedEntity, startCDATA, startDocument, startDTD, startElement, startEntity, startPrefixMapping, unparsedEntityDecl |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final char[] REPLACEMENT_CHARACTER
Constructor Detail |
---|
public AstralContentFilter()
AstralContentFilter
.
public AstralContentFilter(gnu.xml.pipeline.EventConsumer consumer)
AstralContentFilter
chaining it to an
EventConsumer
.
consumer
- the next EventConsumer
in the chainMethod Detail |
---|
public void characters(char[] ch, int start, int length) throws SAXException
characters
in interface ContentHandler
characters
in class gnu.xml.pipeline.EventFilter
SAXException
ContentHandler.characters(char[], int, int)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |