SAP NetWeaver '04

com.sapportals.wcm.util.xml
Interface IXMLExtReader

[contained in: com.sap.netweaver.bc.util.par - bc.util.public_api.jar]
public interface IXMLExtReader

Extends org.xml.sax.XMLReader by pull-parsing methods.

Copyright (c) SAP AG 2003


Method Summary
 void discard()
          Free all allocated resources.
 void parse()
          Completely parse the input source.
 boolean parseNextEvents()
          Parse the next (couple of) events, may be only one, and invoke them against the installed org.xml.sax.ContentHandler.
 void setInput(org.xml.sax.InputSource source)
          Set the input source for the reading, but does not start parsing yet.
 

Method Detail

setInput

public void setInput(org.xml.sax.InputSource source)
              throws org.xml.sax.SAXException
Set the input source for the reading, but does not start parsing yet.
Parameters:
source - of input
Throws:
SAXException - Exception raised in failure situation

parseNextEvents

public boolean parseNextEvents()
                        throws org.xml.sax.SAXException,
                               java.io.IOException
Parse the next (couple of) events, may be only one, and invoke them against the installed org.xml.sax.ContentHandler. The reader should ideally only fire one event, but is allowed to generate more to ease internal state management. Returns if end of input was reached.
Returns:
if end of input was reached.
Throws:
SAXException - Exception raised in failure situation
java.io.IOException - Exception raised in failure situation

parse

public void parse()
           throws java.io.IOException,
                  org.xml.sax.SAXException
Completely parse the input source.
Throws:
java.io.IOException - Exception raised in failure situation
SAXException - Exception raised in failure situation

discard

public void discard()
Free all allocated resources. Not necessary to call when parsing has finished.

SAP NetWeaver '04

Copyright © 2004 by SAP AG. All Rights Reserved.
SAP, R/3, mySAP, mySAP.com, xApps, xApp, SAP NetWeaver, and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and in several other countries all over the world. All other product and service names mentioned are the trademarks of their respective companies. Data contained in this document serves informational purposes only. National product specifications may vary.

These materials are subject to change without notice. These materials are provided by SAP AG and its affiliated companies ("SAP Group") for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty.