Class Html5Serializer
- java.lang.Object
-
- org.apache.sling.rewriter.impl.components.Html5Serializer
-
- All Implemented Interfaces:
Serializer,ContentHandler
public class Html5Serializer extends Object implements Serializer
Serializer for writing HTML5 compliant markup
-
-
Constructor Summary
Constructors Constructor Description Html5Serializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcharacters(char[] buffer, int offset, int length)voiddispose()Dispose the serializer.voidendDocument()voidendElement(String uri, String localName, String qName)voidendPrefixMapping(String s)voidignorableWhitespace(char[] ac, int i, int j)voidinit(ProcessingContext context, ProcessingComponentConfiguration config)Initialize this component.voidprocessingInstruction(String s, String s1)voidsetDocumentLocator(Locator locator1)voidskippedEntity(String s)voidstartDocument()voidstartElement(String uri, String localName, String qName, Attributes atts)voidstartPrefixMapping(String s, String s1)
-
-
-
Method Detail
-
characters
public void characters(char[] buffer, int offset, int length) throws SAXException- Specified by:
charactersin interfaceContentHandler- Throws:
SAXException
-
dispose
public void dispose()
Description copied from interface:SerializerDispose the serializer. This method is always invoked by the rewriter in order to allow the serializer to release any resources etc. After this method has been called the instance is considered unusable.- Specified by:
disposein interfaceSerializer
-
endDocument
public void endDocument() throws SAXException- Specified by:
endDocumentin interfaceContentHandler- Throws:
SAXException
-
endElement
public void endElement(String uri, String localName, String qName) throws SAXException
- Specified by:
endElementin interfaceContentHandler- Throws:
SAXException
-
endPrefixMapping
public void endPrefixMapping(String s) throws SAXException
- Specified by:
endPrefixMappingin interfaceContentHandler- Throws:
SAXException
-
ignorableWhitespace
public void ignorableWhitespace(char[] ac, int i, int j) throws SAXException- Specified by:
ignorableWhitespacein interfaceContentHandler- Throws:
SAXException
-
init
public void init(ProcessingContext context, ProcessingComponentConfiguration config) throws IOException
Description copied from interface:SerializerInitialize this component.- Specified by:
initin interfaceSerializer- Parameters:
context- The invocation context.config- The configuration for this component.- Throws:
IOException- in case of problems
-
processingInstruction
public void processingInstruction(String s, String s1) throws SAXException
- Specified by:
processingInstructionin interfaceContentHandler- Throws:
SAXException
-
setDocumentLocator
public void setDocumentLocator(Locator locator1)
- Specified by:
setDocumentLocatorin interfaceContentHandler
-
skippedEntity
public void skippedEntity(String s) throws SAXException
- Specified by:
skippedEntityin interfaceContentHandler- Throws:
SAXException
-
startDocument
public void startDocument() throws SAXException- Specified by:
startDocumentin interfaceContentHandler- Throws:
SAXException
-
startElement
public void startElement(String uri, String localName, String qName, Attributes atts) throws SAXException
- Specified by:
startElementin interfaceContentHandler- Throws:
SAXException
-
startPrefixMapping
public void startPrefixMapping(String s, String s1) throws SAXException
- Specified by:
startPrefixMappingin interfaceContentHandler- Throws:
SAXException
-
-