The main interface of the event iterator-based API is XMLEventReader.
事件迭代器API的主要接口是XMLEventReader。
When iterating over a Collection, the compiler generates the standard iterator-based idiom.
当在Collection上迭代时,编译器生成标准的基于迭代器的语法。
To use the event iterator-based API, the application must first obtain an instance of XMLEventReader from the XMLInputFactory.
要使用基于事件迭代器的API,应用程序首先必须从XMLInputFactory获得XMLEventReader 的实例。
These are just some of the examples of what can be done with the event iterator-based API provided by StAX, thanks to its flexibility and ease of use.
本文仅介绍了用StAX基于事件迭代器的API所能完成的一部分功能,见证了它的灵活性以及易用性。
The compiler translates this code into the equivalent iterator-based loop, as shown in Listing 2.
编译器把这个代码转换成等价的基于迭代器的循环,如清单2所示。
Imagine that we have an iterator-based algorithm that requires random access iterators.
假设我们有一个基于迭代器的算法,要求是随机访问迭代器。
The event iterator-based API represents a more object-oriented approach than the cursor-based API.
和基于指针的API相比,基于事件迭代器的 API 具有更多的面向对象特征。
XMLEventAllocator is essentially a bridge between the cursor-based and the event iterator-based API.
XMLEventAllocator 本质上是基于指针的 API和基于事件迭代器的 API之间的一座桥梁。
XMLEventAllocator is essentially a bridge between the cursor-based and the event iterator-based API.
XMLEventAllocator 本质上是基于指针的 API和基于事件迭代器的 API之间的一座桥梁。
应用推荐