| java.lang.Object net.sf.saxon.event.SequenceReceiver net.sf.saxon.event.ProxyReceiver net.sf.saxon.event.HTMLURIEscaper
All known Subclasses: net.sf.saxon.event.XHTMLURIEscaper,
HTMLURIEscaper | public class HTMLURIEscaper extends ProxyReceiver (Code) | | This class is used as a filter on the serialization pipeline; it performs the function
of escaping URI-valued attributes in HTML
author: Michael H. Kay |
currentElement | protected int currentElement(Code) | | |
escapeURIAttributes | protected boolean escapeURIAttributes(Code) | | |
attribute | public void attribute(int nameCode, int typeCode, CharSequence value, int locationId, int properties) throws XPathException(Code) | | Notify an attribute. Attributes are notified after the startElement event, and before any
children. Namespaces and attributes may be intermingled.
Parameters: nameCode - The name of the attribute, as held in the name pool Parameters: typeCode - The type of the attribute, as held in the name pool Parameters: properties - Bit significant value. The following bits are defined:DISABLE_ESCAPING Disable escaping for this attributeNO_SPECIAL_CHARACTERS Attribute value contains no special characters throws: IllegalStateException - : attempt to output an attribute when there is no open elementstart tag |
escapeURL | public static CharSequence escapeURL(CharSequence url)(Code) | | Escape a URI according to the HTML rules: that is, a non-ASCII character (specifically,
a character outside the range 32 - 126) is replaced by the %HH encoding of the octets in
its UTF-8 representation
Parameters: url - the URI to be escaped the URI after escaping non-ASCII characters |
isUrlAttribute | public boolean isUrlAttribute(int element, int attribute)(Code) | | |
startDocument | public void startDocument(int properties) throws XPathException(Code) | | Start of a document node.
|
startElement | public void startElement(int nameCode, int typeCode, int locationId, int properties) throws XPathException(Code) | | Notify the start of an element
Parameters: nameCode - integer code identifying the name of the element within the name pool. Parameters: typeCode - integer code identifying the element's type within the name pool. Parameters: properties - properties of the element node |
Methods inherited from net.sf.saxon.event.ProxyReceiver | public void attribute(int nameCode, int typeCode, CharSequence value, int locationId, int properties) throws XPathException(Code)(Java Doc) public void characters(CharSequence chars, int locationId, int properties) throws XPathException(Code)(Java Doc) public void close() throws XPathException(Code)(Java Doc) public void comment(CharSequence chars, int locationId, int properties) throws XPathException(Code)(Java Doc) public void endDocument() throws XPathException(Code)(Java Doc) public void endElement() throws XPathException(Code)(Java Doc) public Configuration getConfiguration()(Code)(Java Doc) public LocationProvider getDocumentLocator()(Code)(Java Doc) public NamePool getNamePool()(Code)(Java Doc) public String getSystemId()(Code)(Java Doc) public Receiver getUnderlyingReceiver()(Code)(Java Doc) public void namespace(int namespaceCode, int properties) throws XPathException(Code)(Java Doc) public void open() throws XPathException(Code)(Java Doc) public void processingInstruction(String target, CharSequence data, int locationId, int properties) throws XPathException(Code)(Java Doc) public void setPipelineConfiguration(PipelineConfiguration config)(Code)(Java Doc) public void setSystemId(String systemId)(Code)(Java Doc) public void setUnderlyingReceiver(Receiver receiver)(Code)(Java Doc) public void setUnparsedEntity(String name, String uri, String publicId) throws XPathException(Code)(Java Doc) public void startContent() throws XPathException(Code)(Java Doc) public void startDocument(int properties) throws XPathException(Code)(Java Doc) public void startElement(int nameCode, int typeCode, int locationId, int properties) throws XPathException(Code)(Java Doc)
|
|
|