• Register callback implementations (by using a class that extends DefaultHandler, for example).

    注册回调实现(例如通过使用继承defaulthandler的类)。

    youdao

  • Default implementations provided by DefaultHandler are retained for other event processing methods.

    对于其它事件处理方法保留defaulthandler提供缺省实现

    youdao

  • The easiest solution to declare an event handler is to inherit from the SAX-provided defaulthandler.

    声明事件处理器简单方案继承SAX提供的defaulthandler

    youdao

  • To simplify work, SAX provides a default implementation for these interfaces in the DefaultHandler class.

    简化工作SAXdefaulthandler类中提供这些接口缺省实现

    youdao

  • The major difference is that variations of the parse() method do not take an instance of the SAX DefaultHandler class.

    主要差别在于parse()方法变种接受SAXDefaultHandler 类的实例

    youdao

  • Listing 2 only registers a DefaultHandler object that simply prints validation errors on the console, as shown in Listing 3.

    清单2仅仅注册了一个DefaultHandler对象,该对象只是控制台上打印验证错误清单3

    youdao

  • Similarly, when using SAX 2.0, it will be obvious that the methods that accept DefaultHandler instances and return XMLReaders will be used.

    同样使用SAX 2.0 时,很明显,应该使用那些接收DefaultHandler实例返回XMLReader方法

    youdao

  • A handler has to be created for these events by either implementing an interface or extending the DefaultHandler class and overriding its methods as needed.

    必须通过实现接口或者扩展DefaultHandler根据需要重写方法创建这些事件handler

    youdao

  • In most cases, it is easier to extend DefaultHandler and override the methods that are relevant for the application rather than to implement an interface directly.

    大多数情况下应用程序扩展DefaultHandler覆盖相关方法直接实现一个接口容易。

    youdao

  • Sax also provides a class called DefaultHandler (in the org.xml.sax.helpers package) that implements all of these callbacks and provides default, empty implementations of all the callback methods.

    sax提供一个叫做DefaultHandler(or g . xml . sax .helpers软件包中)实现所有这些提供所有回调方法默认实现

    youdao

  • Sax also provides a class called DefaultHandler (in the org.xml.sax.helpers package) that implements all of these callbacks and provides default, empty implementations of all the callback methods.

    sax提供一个叫做DefaultHandler(or g . xml . sax .helpers软件包中)实现所有这些提供所有回调方法默认实现

    youdao

$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定