Package nu.validator.source
Interface SourceHandler
- All Known Implementing Classes:
JsonExtractHandler
,JsonSourceHandler
,XhtmlExtractHandler
,XhtmlSourceHandler
,XmlExtractHandler
,XmlSourceHandler
public interface SourceHandler
-
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)
-
Method Details
-
startSource
void startSource(java.lang.String type, java.lang.String encoding) throws org.xml.sax.SAXException- Throws:
org.xml.sax.SAXException
-
setLineErrors
void setLineErrors(java.util.SortedSet<java.lang.Integer> oneBasedLineErrors) throws org.xml.sax.SAXException- Throws:
org.xml.sax.SAXException
-
endSource
void endSource() throws org.xml.sax.SAXException- Throws:
org.xml.sax.SAXException
-
characters
void characters(char[] ch, int start, int length) throws org.xml.sax.SAXExceptionAppend a string consisting of the characters from ch[start] thru ch[start+length-1] inclusive to the source text.- Throws:
org.xml.sax.SAXException
- See Also:
StringBuffer.append(char[], int, int)
,ContentHandler.characters(char[], int, int)
-
newLine
void newLine() throws org.xml.sax.SAXException- Throws:
org.xml.sax.SAXException
-
startRange
void startRange(int oneBasedLine, int oneBasedColumn) throws org.xml.sax.SAXException- Throws:
org.xml.sax.SAXException
-
endRange
void endRange() throws org.xml.sax.SAXException- Throws:
org.xml.sax.SAXException
-
startCharHilite
void startCharHilite(int oneBasedLine, int oneBasedColumn) throws org.xml.sax.SAXException- Throws:
org.xml.sax.SAXException
-
endCharHilite
void endCharHilite() throws org.xml.sax.SAXException- Throws:
org.xml.sax.SAXException
-