fr.tireme.shared.xml.sax
Class SAXErrorHandler

java.lang.Object
  extended by fr.tireme.shared.xml.sax.SAXErrorHandler
All Implemented Interfaces:
org.xml.sax.ErrorHandler

public class SAXErrorHandler
extends java.lang.Object
implements org.xml.sax.ErrorHandler

Handler of all errors reported by a SAX parser

Since:
13 f�vrier 2002
Author:
pierre

Constructor Summary
SAXErrorHandler()
          Constructor for the SAXErrorHandler object
SAXErrorHandler(boolean exit)
          Constructor for the SAXErrorHandler object
SAXErrorHandler(boolean exit, boolean keepStringError)
          Constructor for the SAXErrorHandler object
SAXErrorHandler(boolean exit, boolean keepStringError, boolean systPrint)
          Constructor for the SAXErrorHandler object
 
Method Summary
 void error(org.xml.sax.SAXParseException ex)
          Error.
 void fatalError(org.xml.sax.SAXParseException ex)
          Fatal error.
 java.lang.String getErrorString()
          Gets the errorString attribute of the SAXErrorHandler object
 boolean getStatus()
          Gets the status attribute of the SAXErrorHandler object
 void printError(org.xml.sax.SAXParseException ex, char type)
          Description of the Method
 void warning(org.xml.sax.SAXParseException ex)
          Warning.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SAXErrorHandler

public SAXErrorHandler(boolean exit)
Constructor for the SAXErrorHandler object

Parameters:
exit - Description of the Parameter

SAXErrorHandler

public SAXErrorHandler(boolean exit,
                       boolean keepStringError)
Constructor for the SAXErrorHandler object

Parameters:
exit - Description of the Parameter
keepStringError - Description of the Parameter

SAXErrorHandler

public SAXErrorHandler(boolean exit,
                       boolean keepStringError,
                       boolean systPrint)
Constructor for the SAXErrorHandler object

Parameters:
exit - Description of the Parameter
keepStringError - Description of the Parameter
systPrint - Description of Parameter

SAXErrorHandler

public SAXErrorHandler()
Constructor for the SAXErrorHandler object

Method Detail

getStatus

public boolean getStatus()
Gets the status attribute of the SAXErrorHandler object

Returns:
The status value

getErrorString

public java.lang.String getErrorString()
Gets the errorString attribute of the SAXErrorHandler object

Returns:
The errorString value

warning

public void warning(org.xml.sax.SAXParseException ex)
Warning.

Specified by:
warning in interface org.xml.sax.ErrorHandler
Parameters:
ex - Description of Parameter

error

public void error(org.xml.sax.SAXParseException ex)
Error.

Specified by:
error in interface org.xml.sax.ErrorHandler
Parameters:
ex - Description of Parameter

fatalError

public void fatalError(org.xml.sax.SAXParseException ex)
                throws org.xml.sax.SAXException
Fatal error.

Specified by:
fatalError in interface org.xml.sax.ErrorHandler
Parameters:
ex - Description of Parameter
Throws:
org.xml.sax.SAXException - Description of Exception

printError

public void printError(org.xml.sax.SAXParseException ex,
                       char type)
Description of the Method

Parameters:
ex - Description of Parameter
type - Description of Parameter