第三个代码块(第 8-11 行)处理将文档作为文本写入输出流。
The third block of code (lines 8-11) handles writing the document to an output stream as text.
通过使用提供的 XMLOutputter 类,将已修改的文档写入输出流同样简单(第 6-8 行)。
Writing the modified document to an output stream is equally simple (lines 6-8), using the supplied XMLOutputter class.
将任何挂起的制表符间距和一个包含对象数组的文本表示形式的格式化字符串写入到输出流,并在后面跟上一个行结束符字符串。
Writes any pending tab spacing and a formatted string that contains the text representation of an object array, followed by a line terminator string, to the output stream.
应用推荐