Calls #end() and closes the underlying writer.
()
| 1016 | * Calls {@link #end()} and closes the underlying writer. |
| 1017 | */ |
| 1018 | @Override |
| 1019 | public void close() |
| 1020 | { |
| 1021 | end(); |
| 1022 | try { |
| 1023 | writer.close(); |
| 1024 | } catch (IOException e) { |
| 1025 | error = true; |
| 1026 | } |
| 1027 | } |
| 1028 | |
| 1029 | private void writeStartTag(String tagName, Attribute... attributes) throws IOException |
| 1030 | { |