0N/A/*
2362N/A * Copyright (c) 2003, Oracle and/or its affiliates. All rights reserved.
0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
0N/A *
0N/A * This code is free software; you can redistribute it and/or modify it
0N/A * under the terms of the GNU General Public License version 2 only, as
2362N/A * published by the Free Software Foundation. Oracle designates this
0N/A * particular file as subject to the "Classpath" exception as provided
2362N/A * by Oracle in the LICENSE file that accompanied this code.
0N/A *
0N/A * This code is distributed in the hope that it will be useful, but WITHOUT
0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
0N/A * version 2 for more details (a copy is included in the LICENSE file that
0N/A * accompanied this code).
0N/A *
0N/A * You should have received a copy of the GNU General Public License version
0N/A * 2 along with this work; if not, write to the Free Software Foundation,
0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
0N/A *
2362N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
2362N/A * or visit www.oracle.com if you need additional information or have any
2362N/A * questions.
0N/A */
0N/A
0N/Apackage javax.sql.rowset.spi;
0N/A
0N/Aimport java.sql.SQLException;
0N/Aimport java.io.Reader;
0N/A
0N/Aimport javax.sql.RowSetReader;
0N/Aimport javax.sql.rowset.*;
0N/A
0N/A/**
0N/A * A specialized interface that facilitates an extension of the
0N/A * <code>SyncProvider</code> abstract class for XML orientated
0N/A * synchronization providers.
0N/A * <P>
0N/A * <code>SyncProvider</code> implementations that supply XML data reader
0N/A * capabilities such as output XML stream capabilities can implement this
0N/A * interface to provider standard <code>XmlReader</code> objects to
0N/A * <code>WebRowSet</code> implementations.
0N/A * <p>
0N/A * An <code>XmlReader</code> object is registered as the
0N/A * XML reader for a <code>WebRowSet</code> by being assigned to the
0N/A * rowset's <code>xmlReader</code> field. When the <code>WebRowSet</code>
0N/A * object's <code>readXml</code> method is invoked, it in turn invokes
0N/A * its XML reader's <code>readXML</code> method.
0N/A */
0N/Apublic interface XmlReader extends RowSetReader {
0N/A
0N/A /**
0N/A * Reads and parses the given <code>WebRowSet</code> object from the given
0N/A * input stream in XML format. The <code>xmlReader</code> field of the
0N/A * given <code>WebRowSet</code> object must contain this
0N/A * <code>XmlReader</code> object.
0N/A * <P>
0N/A * If a parsing error occurs, the exception that is thrown will
0N/A * include information about the location of the error in the
0N/A * original XML document.
0N/A *
0N/A * @param caller the <code>WebRowSet</code> object to be parsed, whose
0N/A * <code>xmlReader</code> field must contain a reference to
0N/A * this <code>XmlReader</code> object
0N/A * @param reader the <code>java.io.Reader</code> object from which
0N/A * <code>caller</code> will be read
0N/A * @throws SQLException if a database access error occurs or
0N/A * this <code>XmlReader</code> object is not the reader
0N/A * for the given rowset
0N/A */
0N/A public void readXML(WebRowSet caller, java.io.Reader reader)
0N/A throws SQLException;
0N/A
0N/A}