Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

servlet
Class ApplyXSLTListener  view ApplyXSLTListener download ApplyXSLTListener.java

java.lang.Object
  extended byorg.apache.xml.utils.DefaultErrorHandler
      extended byservlet.ApplyXSLTListener
All Implemented Interfaces:
org.xml.sax.ErrorHandler, javax.xml.transform.ErrorListener

public class ApplyXSLTListener
extends org.apache.xml.utils.DefaultErrorHandler
implements org.xml.sax.ErrorHandler

ApplyXSLTListener provides a buffered listener essential for capturing, and then subsequently reporting, XML and XSL processor messages which may be of use in debugging XML+XSL processed at the server.


Field Summary
 java.io.PrintWriter out
          Buffered output stream
private  java.io.ByteArrayOutputStream outStream
          Output stream
 
Fields inherited from class org.apache.xml.utils.DefaultErrorHandler
 
Constructor Summary
ApplyXSLTListener()
          Constructor.
 
Method Summary
 void error(org.xml.sax.SAXParseException spe)
          Receive notification of a recoverable error.
 void fatalError(org.xml.sax.SAXParseException spe)
          Receive notification of a non-recoverable error.
 java.lang.String getMessage()
          Returns the buffered processing message(s).
 void warning(org.xml.sax.SAXParseException spe)
          Receive notification of a warning.
 
Methods inherited from class org.apache.xml.utils.DefaultErrorHandler
ensureLocationSet, error, fatalError, printLocation, printLocation, printLocation, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

outStream

private java.io.ByteArrayOutputStream outStream
Output stream


out

public java.io.PrintWriter out
Buffered output stream

Constructor Detail

ApplyXSLTListener

public ApplyXSLTListener()
Constructor.

Method Detail

warning

public void warning(org.xml.sax.SAXParseException spe)
Receive notification of a warning.

Specified by:
warning in interface org.xml.sax.ErrorHandler

error

public void error(org.xml.sax.SAXParseException spe)
Receive notification of a recoverable error.

Specified by:
error in interface org.xml.sax.ErrorHandler

fatalError

public void fatalError(org.xml.sax.SAXParseException spe)
                throws org.xml.sax.SAXException
Receive notification of a non-recoverable error.

Specified by:
fatalError in interface org.xml.sax.ErrorHandler

getMessage

public java.lang.String getMessage()
Returns the buffered processing message(s).