默认情况下,它会一直运行直到本机内存耗尽;要让它停止,将运行时间(以秒为单位)作为命令行参数传递给它。
By default, it runs until native memory is exhausted; to make it finish, pass a run time in seconds as a command-line argument.
解析xml文档时,XMLEventReader实例通过它的next方法向客户传递事件对象,文档中的每个语法单位都有一个事件。
When parsing an XML document, an XMLEventReader instance delivers event objects to the client application through its next method — one for each syntactical unit in the document.
如果 ZIP 代码正确,那么它将与用户对摄氏或华氏温度单位的选择一起被传递给 fetchWeatherHtml() 方法,这个方法稍后再介绍。
If the ZIP code is valid, then both it and the user's choice of Celsius or Fahrenheit units are passed to the fetchWeatherHtml() method, which I'll get to a little later.
应用推荐