pull parser
拉解析器
2025-09-08 18:31 浏览次数 13
拉解析器
the pull parser can have some nice performance advantages as well as ease of use.
pull解析器可以提供一些性能优势以及易用性。
based on experience with previous pull parser implementations, the creators of stax opted to include an object-oriented alternative to the cursor-based api.
基于以往拉式解析器实现的经验,stax的创建者选择了在基于指针的api 之外增加一种面向对象的api。
jibx instead uses a newer pull parser api that provides a more natural interface for dealing with the sequence of elements in a document.
而jibx使用一个更新的拉出(pull)解析器api,它提供了一个更自然的接口来处理文档中的元素序列。
it wraps an internal pull parser interface in an unmarshalling context class that defines a variety of element and attribute access methods.
它将内部拉出解析器接口包装在定义各种元素和属性访问方法的数据编出上下文类中。
finally, for writing xml, the pull parser package provides a convenient way to do that as well.
最后,对于编写xml,pull解析器包也提供了一种便捷的方法。
another alternative comes from the pull parser in listing 11.
另一种备选方法来自 清单11中的pull解析器。
instead of sax2, jibx is based on a pull parser architecture (currently xmlpull).
jibx基于拉(pull)解析器体系结构(当前是xmlpull),而不是sax2。
the original jaxb code (since discarded) was based on a pull parser architecture similar to xmlpull.
原始的jaxb代码(已被丢弃)基于类似xmlpull 的拉解析器体系结构。
stax offers a pull parser that gives client applications full control over the parsing process.
stax提供了一个拉式解析器,可以让客户应用程序完全控制解析过程。
if your document is large, but you only need part of the document, then the xml pull parser might be a more efficient way to go.
如果您的文档比较大,但您只需要文档的一部分,则xmlpull解析器可能是更为有效的方法。
xmlreader is a pull parser and you code for it in much the same way as for a database query result table in a cursor.
xmlreader是一种pull解析器,其编码方法和数据库查询结果表的游标中非常类似。
you can process large sets of data more efficiently with an xml pull parser rather than load the entire data structure all at once in memory as you need to do with json or serialize php.
您可以使用一个xmlpull parser更有效地处理大型数据集,而非一次性地将整个数据结构加载到内存中,就像使用json或序列化php 那样。
the ea version of jaxb was based on an innovative pull parser design that allowed validation to easily be built into generated unmarshalling code.
jaxb的ea版本基于具有创新意义的拉解析器(pull parser)设计,这种设计使验证可以方便地构建到生成的数据分解代码中。
axiom is built around the stax pull parser interface.
axiom构建于stax拉式解析器接口的基础之上。
the xml pull parser api is similar to the cursor-based api provided by stax; the parser state can be examined for information about the last parsed event, then advanced to the next one, and so on.
xmlpull parserapi类似于stax所提供的基于指针的api,可以通过分析解析器的状态获得上一个解析事件的信息,然后移动到下一个,依此类推。
woodstox is an open source implementation of the stax pull parser standard.
woodstox是stax推式解析器标準的一种开放源码实现。
the advantage of axiom over other xml representations is that it is based on a pull parser technique, while most others are based on a push parser technique.
axiom相对于其他xml表示形式的优势在于,它基于pull解析器技术,而其他大多数则基于push解析器技术。
however, android does come with a pull parser that works similarly to stax.
但是,android确实附带了一个pull解析器,其工作方式类似于stax。
you will parse the xml document using the xmlresourceparser, which is also a pull parser (it extends the xmlpullparser interface).
您将使用xmlresourceparser 来解析xml文档,它也是一个pull解析器(扩展了xmlpullparser接口)。