Otherwise, it writes to standard output, as shown in Listing 10.
否则,它将写入到标准输出,如清单10中所示。
The rest of the code is elementary. If no results are returned, set the status code to 0; otherwise, set it to 1. Output the initial XML, the XML for each message, and the final XML.
剩下的代码就相当基础,如果没有结果,就设置状态代码为0,否则,设置为1,输出最初的xml,每个消息的xml以及最终的xml.就是这些了,代码如下
Therefore, take care that the Canvas object in fact has been rendered to the screen; otherwise the output file will be empty.
因此,要注意的是一定要确保画布对象已经全部渲染到屏幕上;否则输出文件将是空的。
应用推荐