org.apache.xalan.xsltc.trax

Class DOM2TO

Implemented Interfaces:
Locator, XMLReader

public class DOM2TO
extends java.lang.Object
implements XMLReader, Locator

Author:
Santiago Pericas-Geertsen

Constructor Summary

DOM2TO(Node root, SerializationHandler handler)

Method Summary

int
getColumnNumber()
This class is only used internally so this method should never be called.
ContentHandler
getContentHandler()
Return the current content handler.
DTDHandler
getDTDHandler()
This class is only used internally so this method should never be called.
EntityResolver
getEntityResolver()
This class is only used internally so this method should never be called.
ErrorHandler
getErrorHandler()
This class is only used internally so this method should never be called.
boolean
getFeature(String name)
This class is only used internally so this method should never be called.
int
getLineNumber()
This class is only used internally so this method should never be called.
Object
getProperty(String name)
This class is only used internally so this method should never be called.
String
getPublicId()
This class is only used internally so this method should never be called.
String
getSystemId()
This class is only used internally so this method should never be called.
void
parse()
void
parse(String sysId)
This class is only used internally so this method should never be called.
void
parse(InputSource unused)
Parse an XML document.
void
setContentHandler(ContentHandler handler)
Allow an application to register a content event handler.
void
setDTDHandler(DTDHandler handler)
This class is only used internally so this method should never be called.
void
setEntityResolver(EntityResolver resolver)
This class is only used internally so this method should never be called.
void
setErrorHandler(ErrorHandler handler)
This class is only used internally so this method should never be called.
void
setFeature(String name, boolean value)
This class is only used internally so this method should never be called.
void
setProperty(String name, Object value)
This class is only used internally so this method should never be called.

Constructor Details

DOM2TO

public DOM2TO(Node root,
              SerializationHandler handler)

Method Details

getColumnNumber

public int getColumnNumber()
This class is only used internally so this method should never be called.
Specified by:
getColumnNumber in interface Locator

getContentHandler

public ContentHandler getContentHandler()
Return the current content handler.
Specified by:
getContentHandler in interface XMLReader
Returns:
The current content handler, or null if none has been registered.

getDTDHandler

public DTDHandler getDTDHandler()
This class is only used internally so this method should never be called.
Specified by:
getDTDHandler in interface XMLReader

getEntityResolver

public EntityResolver getEntityResolver()
This class is only used internally so this method should never be called.
Specified by:
getEntityResolver in interface XMLReader

getErrorHandler

public ErrorHandler getErrorHandler()
This class is only used internally so this method should never be called.
Specified by:
getErrorHandler in interface XMLReader

getFeature

public boolean getFeature(String name)
            throws SAXNotRecognizedException,
                   SAXNotSupportedException
This class is only used internally so this method should never be called.
Specified by:
getFeature in interface XMLReader

getLineNumber

public int getLineNumber()
This class is only used internally so this method should never be called.
Specified by:
getLineNumber in interface Locator

getProperty

public Object getProperty(String name)
            throws SAXNotRecognizedException,
                   SAXNotSupportedException
This class is only used internally so this method should never be called.
Specified by:
getProperty in interface XMLReader

getPublicId

public String getPublicId()
This class is only used internally so this method should never be called.
Specified by:
getPublicId in interface Locator

getSystemId

public String getSystemId()
This class is only used internally so this method should never be called.
Specified by:
getSystemId in interface Locator

parse

public void parse()
            throws IOException,
                   SAXException

parse

public void parse(String sysId)
            throws IOException,
                   SAXException
This class is only used internally so this method should never be called.
Specified by:
parse in interface XMLReader

parse

public void parse(InputSource unused)
            throws IOException,
                   SAXException
Parse an XML document.

The application can use this method to instruct the XML reader to begin parsing an XML document from any valid input source (a character stream, a byte stream, or a URI).

Applications may not invoke this method while a parse is in progress (they should create a new XMLReader instead for each nested XML document). Once a parse is complete, an application may reuse the same XMLReader object, possibly with a different input source.

During the parse, the XMLReader will provide information about the XML document through the registered event handlers.

This method is synchronous: it will not return until parsing has ended. If a client application wants to terminate parsing early, it should throw an exception.

Specified by:
parse in interface XMLReader
Parameters:
Throws:
SAXException - Any SAX exception, possibly wrapping another exception.

setContentHandler

public void setContentHandler(ContentHandler handler)
Allow an application to register a content event handler.

If the application does not register a content handler, all content events reported by the SAX parser will be silently ignored.

Applications may register a new or different handler in the middle of a parse, and the SAX parser must begin using the new handler immediately.

Specified by:
setContentHandler in interface XMLReader
Parameters:
handler - The content handler.

setDTDHandler

public void setDTDHandler(DTDHandler handler)
            throws NullPointerException
This class is only used internally so this method should never be called.
Specified by:
setDTDHandler in interface XMLReader

setEntityResolver

public void setEntityResolver(EntityResolver resolver)
            throws NullPointerException
This class is only used internally so this method should never be called.
Specified by:
setEntityResolver in interface XMLReader

setErrorHandler

public void setErrorHandler(ErrorHandler handler)
            throws NullPointerException
This class is only used internally so this method should never be called.
Specified by:
setErrorHandler in interface XMLReader

setFeature

public void setFeature(String name,
                       boolean value)
            throws SAXNotRecognizedException,
                   SAXNotSupportedException
This class is only used internally so this method should never be called.
Specified by:
setFeature in interface XMLReader

setProperty

public void setProperty(String name,
                        Object value)
            throws SAXNotRecognizedException,
                   SAXNotSupportedException
This class is only used internally so this method should never be called.
Specified by:
setProperty in interface XMLReader

Copyright B) 2004 Apache XML Project. All Rights Reserved.