All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.ibm.xml.parser.Stderr

java.lang.Object
   |
   +----com.ibm.xml.parser.Stderr

public class Stderr
extends Object
implements ErrorListener, StreamProducer
A sample implementation of ErrorListener, StreamProducer. This class prints erros to standard error stream, and produce streams from files and URL.

Version:
19980206

Constructor Index

 o Stderr(String)
Make new Stderr instance.

Method Index

 o error(String, int, int, Object, String)
Print error to standard error stream.
 o getInputStream(String, String, String)
Produce InputStream from specified name.

Constructors

 o Stderr
 public Stderr(String fname)
Make new Stderr instance.

Parameters:
fname - default file name when error() is called by null fname.

Methods

 o error
 public void error(String fname,
                   int lineno,
                   int charoff,
                   Object key,
                   String mes)
Print error to standard error stream.

See Also:
ErrorListener
 o getInputStream
 public InputStream getInputStream(String name,
                                   String pubid,
                                   String sysid) throws IOException
Produce InputStream from specified name.

See Also:
StreamProducer

All Packages  Class Hierarchy  This Package  Previous  Next  Index