Class XmlExtractHandler

java.lang.Object
nu.validator.messages.XmlExtractHandler
All Implemented Interfaces:
SourceHandler

public class XmlExtractHandler
extends java.lang.Object
implements SourceHandler
  • Constructor Summary

    Constructors 
    Constructor Description
    XmlExtractHandler​(XmlSaxEmitter emitter)  
  • Method Summary

    Modifier and Type Method Description
    void characters​(char[] ch, int start, int length)
    Append a string consisting of the characters from ch[start] thru ch[start+length-1] inclusive to the source text.
    void endCharHilite()  
    void endRange()  
    void endSource()  
    void newLine()  
    void setLineErrors​(java.util.SortedSet<java.lang.Integer> oneBasedLineErrors)  
    void startCharHilite​(int oneBasedLine, int oneBasedColumn)  
    void startRange​(int oneBasedLine, int oneBasedColumn)  
    void startSource​(java.lang.String type, java.lang.String encoding)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • characters

      public void characters​(char[] ch, int start, int length) throws org.xml.sax.SAXException
      Description copied from interface: SourceHandler
      Append a string consisting of the characters from ch[start] thru ch[start+length-1] inclusive to the source text.
      Specified by:
      characters in interface SourceHandler
      Throws:
      org.xml.sax.SAXException
      See Also:
      StringBuffer.append(char[], int, int), ContentHandler.characters(char[], int, int)
    • endCharHilite

      public void endCharHilite() throws org.xml.sax.SAXException
      Specified by:
      endCharHilite in interface SourceHandler
      Throws:
      org.xml.sax.SAXException
    • endRange

      public void endRange() throws org.xml.sax.SAXException
      Specified by:
      endRange in interface SourceHandler
      Throws:
      org.xml.sax.SAXException
    • endSource

      public void endSource() throws org.xml.sax.SAXException
      Specified by:
      endSource in interface SourceHandler
      Throws:
      org.xml.sax.SAXException
    • newLine

      public void newLine() throws org.xml.sax.SAXException
      Specified by:
      newLine in interface SourceHandler
      Throws:
      org.xml.sax.SAXException
    • startCharHilite

      public void startCharHilite​(int oneBasedLine, int oneBasedColumn) throws org.xml.sax.SAXException
      Specified by:
      startCharHilite in interface SourceHandler
      Throws:
      org.xml.sax.SAXException
    • startRange

      public void startRange​(int oneBasedLine, int oneBasedColumn) throws org.xml.sax.SAXException
      Specified by:
      startRange in interface SourceHandler
      Throws:
      org.xml.sax.SAXException
    • startSource

      public void startSource​(java.lang.String type, java.lang.String encoding) throws org.xml.sax.SAXException
      Specified by:
      startSource in interface SourceHandler
      Throws:
      org.xml.sax.SAXException
    • setLineErrors

      public void setLineErrors​(java.util.SortedSet<java.lang.Integer> oneBasedLineErrors) throws org.xml.sax.SAXException
      Specified by:
      setLineErrors in interface SourceHandler
      Throws:
      org.xml.sax.SAXException