Package eu.webtoolkit.jwt
Class XHtmlFilter
java.lang.Object
eu.webtoolkit.jwt.XHtmlFilter
- All Implemented Interfaces:
net.n3.nanoxml.IXMLBuilder
,net.n3.nanoxml.IXMLEntityResolver
public class XHtmlFilter
extends Object
implements net.n3.nanoxml.IXMLBuilder, net.n3.nanoxml.IXMLEntityResolver
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
addExternalEntity
(String name, String publicID, String systemID) void
addInternalEntity
(String name, String value) void
void
elementAttributesProcessed
(String name, String nsPrefix, String nsURI) void
endElement
(String name, String nsPrefix, String nsURI) protected static String
htmlAttributeEncode
(String attribute) protected static String
htmlEntityDecode
(String attribute) boolean
isExternalEntity
(String name) void
newProcessingInstruction
(String target, Reader reader) result()
void
startBuilding
(String systemID, int lineNr) void
startElement
(String name, String nsPrefix, String nsURI, String systemID, int lineNr)
-
Field Details
-
xhtmlEntities
-
writer
-
tagOpen
protected boolean tagOpen
-
-
Constructor Details
-
XHtmlFilter
public XHtmlFilter(boolean resolveToUnicode)
-
-
Method Details
-
addExternalEntity
- Specified by:
addExternalEntity
in interfacenet.n3.nanoxml.IXMLEntityResolver
-
addInternalEntity
- Specified by:
addInternalEntity
in interfacenet.n3.nanoxml.IXMLEntityResolver
-
getEntity
public Reader getEntity(net.n3.nanoxml.IXMLReader xmlReader, String name) throws net.n3.nanoxml.XMLParseException - Specified by:
getEntity
in interfacenet.n3.nanoxml.IXMLEntityResolver
- Throws:
net.n3.nanoxml.XMLParseException
-
getEntity
-
isExternalEntity
- Specified by:
isExternalEntity
in interfacenet.n3.nanoxml.IXMLEntityResolver
-
result
-
newProcessingInstruction
- Specified by:
newProcessingInstruction
in interfacenet.n3.nanoxml.IXMLBuilder
- Throws:
Exception
-
startBuilding
- Specified by:
startBuilding
in interfacenet.n3.nanoxml.IXMLBuilder
- Throws:
Exception
-
addAttribute
public void addAttribute(String key, String nsPrefix, String nsURI, String value, String type) throws Exception - Specified by:
addAttribute
in interfacenet.n3.nanoxml.IXMLBuilder
- Throws:
Exception
-
addAttribute
public void addAttribute(String key, String nsPrefix, String nsURI, String value, String type, boolean encode) throws Exception - Throws:
Exception
-
addPCData
- Specified by:
addPCData
in interfacenet.n3.nanoxml.IXMLBuilder
- Throws:
Exception
-
elementAttributesProcessed
- Specified by:
elementAttributesProcessed
in interfacenet.n3.nanoxml.IXMLBuilder
- Throws:
Exception
-
startElement
public void startElement(String name, String nsPrefix, String nsURI, String systemID, int lineNr) throws Exception - Specified by:
startElement
in interfacenet.n3.nanoxml.IXMLBuilder
- Throws:
Exception
-
endElement
- Specified by:
endElement
in interfacenet.n3.nanoxml.IXMLBuilder
- Throws:
Exception
-
getResult
- Specified by:
getResult
in interfacenet.n3.nanoxml.IXMLBuilder
- Throws:
Exception
-
htmlEntityDecode
-
htmlAttributeEncode
-