Class OPSHandler

  • All Implemented Interfaces:
    org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler, org.xml.sax.ext.DeclHandler, org.xml.sax.ext.EntityResolver2, org.xml.sax.ext.LexicalHandler
    Direct Known Subclasses:
    OPSHandler30

    public class OPSHandler
    extends XMLHandler
    • Field Detail

      • openElements

        protected long openElements
      • charsCount

        protected long charsCount
      • tableDepth

        protected int tableDepth
      • hasTh

        protected boolean hasTh
      • hasThead

        protected boolean hasThead
      • hasCaption

        protected boolean hasCaption
      • hasCSS

        protected boolean hasCSS
      • epubTypeInUse

        protected boolean epubTypeInUse
      • textNode

        protected java.lang.StringBuilder textNode
      • elementLocationStack

        protected java.util.Stack<EPUBLocation> elementLocationStack
    • Method Detail

      • checkPaint

        private void checkPaint​(java.lang.String attr)
      • checkImage

        protected void checkImage​(java.lang.String attrNS,
                                  java.lang.String attr)
      • checkObject

        protected void checkObject()
      • checkLink

        protected void checkLink()
      • checkSymbol

        protected void checkSymbol()
      • checkHRef

        private void checkHRef​(java.lang.String attrNS,
                               java.lang.String attr)
      • checkSVGFontFaceURI

        protected io.mola.galimatias.URL checkSVGFontFaceURI()
      • processHyperlink

        protected void processHyperlink​(io.mola.galimatias.URL href)
      • checkBoldItalics

        protected void checkBoldItalics()
      • checkIFrame

        protected void checkIFrame()
      • checkScript

        protected void checkScript()
      • processJavascript

        protected void processJavascript()
      • checkDependentCondition

        protected void checkDependentCondition​(MessageId id,
                                               boolean condition1,
                                               boolean condition2,
                                               EPUBLocation location)
      • characters

        public void characters​(char[] chars,
                               int start,
                               int length)
        Specified by:
        characters in interface org.xml.sax.ContentHandler
        Overrides:
        characters in class org.xml.sax.helpers.DefaultHandler
      • processingInstruction

        public void processingInstruction​(java.lang.String target,
                                          java.lang.String data)
                                   throws org.xml.sax.SAXException
        Specified by:
        processingInstruction in interface org.xml.sax.ContentHandler
        Overrides:
        processingInstruction in class org.xml.sax.helpers.DefaultHandler
        Throws:
        org.xml.sax.SAXException
      • checkXMLStylesheetPI

        protected void checkXMLStylesheetPI​(java.lang.String data)