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 Details

  • Constructor Details

    • XHtmlFilter

      public XHtmlFilter(boolean resolveToUnicode)
  • Method Details

    • addExternalEntity

      public void addExternalEntity(String name, String publicID, String systemID)
      Specified by:
      addExternalEntity in interface net.n3.nanoxml.IXMLEntityResolver
    • addInternalEntity

      public void addInternalEntity(String name, String value)
      Specified by:
      addInternalEntity in interface net.n3.nanoxml.IXMLEntityResolver
    • getEntity

      public Reader getEntity(net.n3.nanoxml.IXMLReader xmlReader, String name) throws net.n3.nanoxml.XMLParseException
      Specified by:
      getEntity in interface net.n3.nanoxml.IXMLEntityResolver
      Throws:
      net.n3.nanoxml.XMLParseException
    • getEntity

      public Reader getEntity(net.n3.nanoxml.IXMLReader xmlReader, String name, boolean resolveToUnicode)
    • isExternalEntity

      public boolean isExternalEntity(String name)
      Specified by:
      isExternalEntity in interface net.n3.nanoxml.IXMLEntityResolver
    • result

      public String result()
    • newProcessingInstruction

      public void newProcessingInstruction(String target, Reader reader) throws Exception
      Specified by:
      newProcessingInstruction in interface net.n3.nanoxml.IXMLBuilder
      Throws:
      Exception
    • startBuilding

      public void startBuilding(String systemID, int lineNr) throws Exception
      Specified by:
      startBuilding in interface net.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 interface net.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

      public void addPCData(Reader reader, String systemID, int lineNr) throws Exception
      Specified by:
      addPCData in interface net.n3.nanoxml.IXMLBuilder
      Throws:
      Exception
    • elementAttributesProcessed

      public void elementAttributesProcessed(String name, String nsPrefix, String nsURI) throws Exception
      Specified by:
      elementAttributesProcessed in interface net.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 interface net.n3.nanoxml.IXMLBuilder
      Throws:
      Exception
    • endElement

      public void endElement(String name, String nsPrefix, String nsURI) throws Exception
      Specified by:
      endElement in interface net.n3.nanoxml.IXMLBuilder
      Throws:
      Exception
    • getResult

      public Object getResult() throws Exception
      Specified by:
      getResult in interface net.n3.nanoxml.IXMLBuilder
      Throws:
      Exception
    • htmlEntityDecode

      protected static String htmlEntityDecode(String attribute)
    • htmlAttributeEncode

      protected static String htmlAttributeEncode(String attribute)