Java tutorial
//package com.java2s; /* This code is part of Freenet. It is distributed under the GNU General * Public License, version 2 (or at your option any later version). See * http://www.gnu.org/ for further details of the GPL. */ import java.io.IOException; import java.io.Writer; public class Main { public final static void writePreamble(Writer w) throws IOException { w.write("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"); } }