Loading…
|
Translation uploaded |
|
|
String added in the repository |
|
Flags
safe-html, strict-same
Loading…
|
Translation uploaded |
|
|
String added in the repository |
|
Users who wish to implement custom parsing strategies may create their own handler to use with an instance of <<ref_basic_parser>>. The handler implements the function signatures required by SAX event interface. In <<examples_validate>> example we define the "希望实现自定义解析策略的用户可以创建自己的处理器(handler),并与 <<ref_basic_parser>> 实例配合使用。该处理器需实现 SAX 事件接口所要求的函数签名。在 <<examples_validate>> 示例中,我们定义了一个“空”解析器(null"parser, which throws out the parsed results, to use in the implementation of a function that determines if a JSON text is valid.),它会丢弃所有解析结果,用于实现一个判断 JSON 文本是否有效的函数。</examples_validate></ref_basic_parser>