Java tutorial
//package com.java2s; //License from project: LGPL import javax.xml.stream.XMLStreamException; import javax.xml.stream.XMLStreamWriter; public class Main { public static void endDocument(XMLStreamWriter writer) throws XMLStreamException { writer.writeEndDocument(); } }