public final class SourceCode
extends java.lang.Object
implements nu.validator.htmlparser.common.CharacterHandler
Constructor and Description |
---|
SourceCode() |
Modifier and Type | Method and Description |
---|---|
void |
characters(char[] ch,
int start,
int length) |
void |
emitSource(SourceHandler handler) |
void |
end() |
void |
exactError(Location location,
SourceHandler extractHandler) |
org.xml.sax.ContentHandler |
getLocationRecorder()
Returns the locationRecorder.
|
java.lang.String |
getUri()
Returns the uri.
|
void |
initialize(org.xml.sax.InputSource inputSource) |
boolean |
isWithinKnownSource(int oneBasedLine) |
boolean |
isWithinKnownSource(Location location) |
void |
lineError(int oneBasedLine,
SourceHandler extractHandler) |
Location |
newLocatorLocation(int oneBasedLine,
int oneBasedColumn) |
void |
rangeEndError(Location rangeStart,
Location rangeLast,
SourceHandler extractHandler) |
Location |
rangeStartForRangeLast(Location rangeLast) |
void |
registerRandeEnd(org.xml.sax.Locator locator) |
void |
rememberExactError(Location location) |
void |
start() |
public void initialize(org.xml.sax.InputSource inputSource)
public void characters(char[] ch, int start, int length) throws org.xml.sax.SAXException
characters
in interface nu.validator.htmlparser.common.CharacterHandler
org.xml.sax.SAXException
ContentHandler.characters(char[], int, int)
,
StringBuffer.append(char[], int, int)
public void end() throws org.xml.sax.SAXException
end
in interface nu.validator.htmlparser.common.CharacterHandler
org.xml.sax.SAXException
public void start() throws org.xml.sax.SAXException
start
in interface nu.validator.htmlparser.common.CharacterHandler
org.xml.sax.SAXException
public void exactError(Location location, SourceHandler extractHandler) throws org.xml.sax.SAXException
org.xml.sax.SAXException
public void rememberExactError(Location location)
public void registerRandeEnd(org.xml.sax.Locator locator)
public void rangeEndError(Location rangeStart, Location rangeLast, SourceHandler extractHandler) throws org.xml.sax.SAXException
org.xml.sax.SAXException
public Location rangeStartForRangeLast(Location rangeLast)
rangeLast
- public void lineError(int oneBasedLine, SourceHandler extractHandler) throws org.xml.sax.SAXException
org.xml.sax.SAXException
public boolean isWithinKnownSource(Location location)
public boolean isWithinKnownSource(int oneBasedLine)
public void emitSource(SourceHandler handler) throws org.xml.sax.SAXException
org.xml.sax.SAXException
public java.lang.String getUri()
public org.xml.sax.ContentHandler getLocationRecorder()
LexicalHandler
.public Location newLocatorLocation(int oneBasedLine, int oneBasedColumn)