As mentioned earlier, XNI provides a framework similar to the SAX API.
如前所述,XNI提供了与SAX API类似的框架。
XNI was declared stable almost two years ago and it is not expected to undergo major changes in the future.
XNI公布差不多有两年了,一直很稳定,估计将来也不会有大的变化。
The design of XNI for accessing the document information set is more tuned for performance than that of SAX.
与SAX相比,XNI的设计对文档信息集的访问进行了更多的性能优化。
The XNI handler interfaces were designed to provide all document information as defined by the XML information Set specification.
XNI处理程序接口被设计成提供XMLInformationSet规范定义的所有文档信息。
But in those rare cases where you do need to know the input encoding, SAX and XNI offer fast and efficient means of figuring it out.
但是,有些情况下需要知道输入编码,SAX和XNI可以提供快速而有效的方法来解决这一问题。
Therefore, XNI remains an internal API framework that is used in the Xerces2 parser to communicate data between different components.
因此,XNI仍然是Xerces2解析器用于在不同组件之间通信的一种内部API框架。
The approach with XNI is very similar to that of SAX. (In fact, in Xerces, the SAX parser is a thin layer on top of the native XNI parser.)
使用XNI的方法与SAX是非常相似的(实际上,在Xerces 中,SAX解析器是本机 XNI 解析器之上很薄的一层)。
Assuming that your SAX application always runs in an environment where Xerces2 is present, you can benefit by switching to programming with XNI directly.
如果您的SAX应用程序总是在Xerces2支持的环境中运行,直接使用XNI编程会带来很大好处。
In this article, we introduced the Xerces Native Interface (XNI) and described how you can use this API directly to improve your application's performance.
本文介绍了XercesNativeInterface (XNI)并说明如何直接使用这种API提高应用程序的性能。
Therefore, in this article we give a brief overview of XNI, explaining how it is different from SAX and how you can use XNI to make your application faster.
因此本文将简要介绍XNI,说明它和SAX的差别以及如何利用XNI加快程序执行速度。
Here, we show how you can optimize the performance of your application by using the Xerces Native Interface (XNI) and configuring features and properties specific to Xerces2.
本文中将介绍如何通过使用Xerces本机接口(XNI)和设置Xerces2的特性和属性来实现应用程序性能的优化。
Here, we show how you can optimize the performance of your application by using the Xerces Native Interface (XNI) and configuring features and properties specific to Xerces2.
本文中将介绍如何通过使用Xerces本机接口(XNI)和设置Xerces2的特性和属性来实现应用程序性能的优化。
应用推荐