このページはEtoJ逐語翻訳フィルタによって翻訳生成されました。

翻訳前ページへ


Interface XFastParser
Language

The 解放する/自由な and Open 生産性 控訴
解放(する)d: Apache OpenOffice 4.1.16

API

SDK

Tips ‘n’ Tricks

Miscellaneous


:: com :: sun :: 星/主役にする :: xml :: sax ::

unpublished interface XFastParser
Usage 制限s
not published
Description
明示するs a SAX parser that uses integer values for known xml 指名するs (elements, せいにするs and せいにする values). The parser also 扱うs namespaces and 許すs to have individual 状況s for each xml element.

Before parsing is possible you have to 始める,決める your XFastDocumentHandler using setFastDocumentHandler.

Parsing starts with calling parseStream. If the parser finds a valid xml とじ込み/提出する with the given InputSource, it calls XFastDocumentHandler::startDocument first.

This parser 生成するs either '急速な/放蕩な' events that use integer 記念品 values for namespaces, elements and せいにするs or 'unknown' events for elements that are unknown.

A namespace is unknown if the namespace URL was not 登録(する)d with registerNamespace.

An element is unknown if no XFastTokenHandler is 始める,決める or if the XFastTokenHandler does not return a valid identifier for the elements 地元の 指名する. An element is also unknown if the elements 地元の 指名する is known but it uses a namespace that is unknown.

Setting a XFastTokenHandler with setTokenHandler is optional, but without a XFastTokenHandler you will only get unknown sax events. This can be useful if you are only 利益/興味d in the namespace 扱うing and/or the 状況 feature.

For each element the parser sends a create child element event to the elements parent 状況 by calling XFastContextHandler::createFastChildContext for known elements or XFastContextHandler::createUnknownChildContext for unknown elements.
The parent 状況 for the root element is the XFastDocumentHandler itself.

If the parent 状況 returns an empty 言及/関連, no その上の events for the element and all of its childs are created.

If a valid 状況 is returned this 状況 gets a start event by a call to XFastContextHandler::startFastElement for known elements or XFastContextHandler::startUnknownElement for unknown elements.

After 過程ing all its child elements the 状況 gets an end event by a call to XFastContextHandler::endFastElement for known elements or XFastContextHandler::endUnknownElement for unknown elements.

It is valid to return one instance of XFastContextHandler more than once. It is even possible to only use the XFastDocumentHandler by always returning a 言及/関連 to itself for each create child 状況 event.

After the last element is 過程d the parser 生成するs an end 文書 event at the XFastDocumentHandler by calling XFastDocumentHandler::endDocument.

See also
http://wiki.services.openoffice.org/wiki/FastParser

Methods' 要約
parseStream parses an XML 文書 from a stream.  
setFastDocumentHandler 使用/適用 must 登録(する) a 文書 event handler to get sax events for the parsed stream.  
setTokenHandler must be 登録(する)d to translate known xml 指名するs to integer 記念品s.  
registerNamespace 登録(する)s a known namespace url with the given integer 記念品.
 
setErrorHandler 許すs an 使用/適用 to 登録(する) an error event handler.  
setEntityResolver 許すs an 使用/適用 to 登録(する) a DTD-Handler.  
setLocale 始める,決めるs a 地元の 明示するd for localization of 警告s and error messages.  
Methods' 詳細(に述べる)s
parseStream
無効の
parseStream( [in] InputSource  aInputSource )
raises( SAXException,
::com::sun::星/主役にする::io::IOException );

Description
parses an XML 文書 from a stream.

始める,決める the 願望(する)d handlers before calling this method.

setFastDocumentHandler
無効の
setFastDocumentHandler( [in] XFastDocumentHandler  Handler );

Description
使用/適用 must 登録(する) a 文書 event handler to get sax events for the parsed stream.
setTokenHandler
無効の
setTokenHandler( [in] XFastTokenHandler  Handler );

Description
must be 登録(する)d to translate known xml 指名するs to integer 記念品s.
registerNamespace
無効の
registerNamespace( [in] string  NamespaceURL,
[in] long  NamespaceToken )
raises( ::com::sun::星/主役にする::lang::IllegalArgumentException );

Description
登録(する)s a known namespace url with the given integer 記念品.
Parameter NamespaceToken
an integer 記念品 that must be greater than FastToken::NAMESPACE.
setErrorHandler
無効の
setErrorHandler( [in] XErrorHandler  Handler );

Description
許すs an 使用/適用 to 登録(する) an error event handler.

公式文書,認める that the error handler can throw an exception when an error or 警告 occurs. 公式文書,認める that an exception is thrown by the parser when an unrecoverable (致命的な) error occurs.

setEntityResolver
無効の
setEntityResolver( [in] XEntityResolver  Resolver );

Description
許すs an 使用/適用 to 登録(する) a DTD-Handler.
setLocale
無効の
setLocale( [in] ::com::sun::星/主役にする::lang::地元の  地元の );

Description
始める,決めるs a 地元の 明示するd for localization of 警告s and error messages.

始める,決める the language of the error messages. Useful when the parsing errors will be 現在のd to the 使用者.

最高の,を越す of Page

The ASF

Copyright & License | Privacy | 接触する Us | 寄付する | Thanks

Apache, OpenOffice, OpenOffice.org and the seagull logo are 登録(する)d trademarks of The Apache ソフトウェア 創立/基礎. The ASF logo is a trademark of The Apache ソフトウェア 創立/基礎. Other 指名するs appearing on the 場所/位置 may be trademarks of their 各々の owners.