Class OPSHandler

All Implemented Interfaces:
ContentHandler, DTDHandler, EntityResolver, ErrorHandler, DeclHandler, EntityResolver2, LexicalHandler
Direct Known Subclasses:
OPSHandler30

public class OPSHandler extends XMLHandler
  • Field Details

    • 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 StringBuilder textNode
    • elementLocationStack

      protected Stack<EPUBLocation> elementLocationStack
  • Constructor Details

  • Method Details

    • checkPaint

      private void checkPaint(String attr)
    • checkImage

      protected void checkImage(String attrNS, String attr)
    • checkObject

      protected void checkObject()
    • checkLink

      protected void checkLink()
    • checkSymbol

      protected void checkSymbol()
    • checkHRef

      private void checkHRef(String attrNS, String attr)
    • checkSVGFontFaceURI

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

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

      public void startElement()
      Overrides:
      startElement in class XMLHandler
    • checkBoldItalics

      protected void checkBoldItalics()
    • checkIFrame

      protected void checkIFrame()
    • checkScript

      protected void checkScript()
    • processJavascript

      protected void processJavascript()
    • endElement

      public void endElement()
      Overrides:
      endElement in class XMLHandler
    • 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 ContentHandler
      Overrides:
      characters in class DefaultHandler
    • processingInstruction

      public void processingInstruction(String target, String data) throws SAXException
      Specified by:
      processingInstruction in interface ContentHandler
      Overrides:
      processingInstruction in class DefaultHandler
      Throws:
      SAXException
    • checkXMLStylesheetPI

      protected void checkXMLStylesheetPI(String data)