Prints this section to a print writer. @param writer where to write @throws IOException at an I/O problem
(PrintWriter writer)
| 919 | * @throws IOException at an I/O problem |
| 920 | */ |
| 921 | public void save(PrintWriter writer) throws IOException { |
| 922 | Iterator<Line> it = this.lines.iterator(); |
| 923 | while (it.hasNext()) { |
| 924 | writer.println(it.next().toString()); |
| 925 | } |
| 926 | if (writer.checkError()) { |
| 927 | throw new IOException(); |
| 928 | } |
| 929 | } |
| 930 | |
| 931 | /** |
| 932 | * Returns an actual Option instance. |