Java tutorial
//package com.java2s; import java.io.IOException; import java.io.Writer; public class Main { private static void addPrologue(Writer writer) throws IOException { writer.write("<?xml version='1.0' encoding='UTF-8'?>"); } }