oracle.xml.parser.v2
Class XMLError

oracle.xml.parser.v2.XMLError

public class XMLError

This class hold error message and the line number where it occured


Constructor Summary
XMLError()
          Default constructor
 
Method Summary
TypeMethod
 void error(int line, int col, java.lang.String pubId, java.lang.String sysId, java.lang.String mesg, int id, int type, boolean stop)
          Adds a new error to the vector
 void flushErrors()
          Flush all the error to the ouput stream output stream defaults or to error handler
 void flushErrors1()
           
 ErrorHandler getErrorHandler()
          Return register error handler
 ErrorListener getErrorListener()
          Deprecated. - This functions should be used.
 void setErrorHandler(ErrorHandler err)
          Register error handler
 void setErrorListener(ErrorListener el)
          Deprecated. - This functions should be used.
 

Constructor Detail

XMLError

public XMLError()
Default constructor
Method Detail

setErrorHandler

public void setErrorHandler(ErrorHandler err)
Register error handler
Parameters:
err - - ErrorHandler

getErrorHandler

public ErrorHandler getErrorHandler()
Return register error handler
Returns:
ErrorHandler

error

public void error(int line,
                  int col,
                  java.lang.String pubId,
                  java.lang.String sysId,
                  java.lang.String mesg,
                  int id,
                  int type,
                  boolean stop)
           throws XMLParseException
Adds a new error to the vector
Parameters:
line - the line number where error occurs
col - the column number where the error occurs
pubId - the public Identifier
sysId - the system identifier
mesg - the error message
id - the error id
type - the error type
stop - boolean to indicate if the processing needs to be stopped.
Throws:
throws - ParseException in case of a fatal error

flushErrors

public void flushErrors()
                 throws XMLParseException
Flush all the error to the ouput stream output stream defaults or to error handler
Throws:
throws - ParseException in case of a fatal error

flushErrors1

public void flushErrors1()
                  throws XMLParseException,
                         SAXParseException,
                         SAXException,
                         java.io.IOException

setErrorListener

public void setErrorListener(ErrorListener el)
Deprecated. - This functions should be used.

Register error listener
Parameters:
err - - ErrorListener

getErrorListener

public ErrorListener getErrorListener()
Deprecated. - This functions should be used.

Return register error listener
Returns:
ErrorListener