/** * Closes this XMLWriter object, in effect flushing it and making it unusable * for any further write operations. * <p> * Closing this does not close the underlying input stream! */ public void close() { if (internalwriter != null) { try { flush(); } catch (Throwable t) { Logger.println("Unhandled exception closing XML Writer: " + t, Logger.DEBUG_SEVERE); // internalwriter.close(); internalwriter = null; } } } }