public class DebugController extends java.lang.Object implements GrammarReaderController
Modifier and Type | Field and Description |
---|---|
private boolean |
displayWarning
if true, warnings are reported.
|
org.xml.sax.EntityResolver |
externalEntityResolver
entity resolution is delegated to this object.
|
protected java.io.PrintStream |
out
messages are sent to this object.
|
private boolean |
warningReported
set to true after "there are warnings..." message is once printed.
|
Constructor and Description |
---|
DebugController(boolean displayWarning) |
DebugController(boolean displayWarning,
boolean quiet) |
DebugController(boolean displayWarning,
boolean quiet,
org.xml.sax.EntityResolver externalEntityResolver) |
DebugController(boolean displayWarning,
boolean quiet,
java.io.PrintStream outDevice) |
DebugController(boolean displayWarning,
boolean quiet,
java.io.PrintStream outDevice,
org.xml.sax.EntityResolver externalEntityResolver) |
Modifier and Type | Method and Description |
---|---|
void |
error(org.xml.sax.Locator[] loc,
java.lang.String errorMessage,
java.lang.Exception nestedException) |
private void |
printLocation(org.xml.sax.Locator loc) |
org.xml.sax.InputSource |
resolveEntity(java.lang.String publicId,
java.lang.String systemId) |
void |
warning(org.xml.sax.Locator[] loc,
java.lang.String errorMessage) |
private boolean displayWarning
private boolean warningReported
public org.xml.sax.EntityResolver externalEntityResolver
protected java.io.PrintStream out
public DebugController(boolean displayWarning)
public DebugController(boolean displayWarning, boolean quiet)
public DebugController(boolean displayWarning, boolean quiet, org.xml.sax.EntityResolver externalEntityResolver)
public DebugController(boolean displayWarning, boolean quiet, java.io.PrintStream outDevice)
public DebugController(boolean displayWarning, boolean quiet, java.io.PrintStream outDevice, org.xml.sax.EntityResolver externalEntityResolver)
public void warning(org.xml.sax.Locator[] loc, java.lang.String errorMessage)
warning
in interface GrammarReaderController
public void error(org.xml.sax.Locator[] loc, java.lang.String errorMessage, java.lang.Exception nestedException)
error
in interface GrammarReaderController
private void printLocation(org.xml.sax.Locator loc)
public org.xml.sax.InputSource resolveEntity(java.lang.String publicId, java.lang.String systemId) throws java.io.IOException, org.xml.sax.SAXException
resolveEntity
in interface org.xml.sax.EntityResolver
java.io.IOException
org.xml.sax.SAXException