public interface XmlWriter extends RowSetWriter
SyncProvider抽象类。
SyncProvider提供XML数据写入器功能(例如输出XML流功能)的实现可以实现该接口,以将标准XmlWriter对象提供给WebRowSet实现。
编写WebRowSet对象包括将行集的数据,元数据和属性全部打印到相应的XML标签中。
void writeXML(WebRowSet caller, Writer writer) throws SQLException
WebRowSet对象写入指定的java.io.Writer输出流作为XML文档。
此文档包括行集的数据,元数据和属性以及相应的XML标记。
caller参数必须是WebRowSet对象,其XmlWriter字段包含对此XmlWriter对象的引用。
caller -
WebRowSet实例,这个
XmlWriter对象是作者
writer - 用作
caller作为XML文档的输出流的
java.io.Writer对象
SQLException - if a database access error occurs or this
XmlWriter object is not the writer for the given
WebRowSet object
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.