|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectErrorHandlerPW
public final class ErrorHandlerPW
A SAX error handler that outputs messages to a print writer.
Constructor Summary | |
---|---|
ErrorHandlerPW(PrintWriter pw)
Creates an ErrorHandlerPW. |
Method Summary | |
---|---|
int |
count()
Returns the sum of error, fatal error and warning counts. |
void |
error(SAXParseException x)
Outputs an error through the print writer. |
void |
fatalError(SAXParseException x)
Outputs a fatal error through the print writer. |
int |
getErrorCount()
Returns the error count. |
int |
getFatalErrorCount()
Returns the fatal error count. |
int |
getWarningCount()
Returns the warning count. |
void |
reset()
Resets all counts to zero. |
void |
warning(SAXParseException x)
Outputs a warning through the print writer. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ErrorHandlerPW(PrintWriter pw)
Method Detail |
---|
public int count()
public int getErrorCount()
public int getFatalErrorCount()
public int getWarningCount()
public void reset()
public void error(SAXParseException x)
error
in interface ErrorHandler
public void fatalError(SAXParseException x)
fatalError
in interface ErrorHandler
public void warning(SAXParseException x)
warning
in interface ErrorHandler
|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |