private static void writeB64Encoded(final XMLStreamWriter writer, final String name,
            final char[] value) throws IOException
    {
        try
        {
            writer.writeStartElement(name);
            writer.writeCharacters(value, 0, value.length);
            writer.writeEndElement();
        }
        catch (XMLStreamException e)
        {
            throw new XmlOutputException(e);
        }
    }
An output used for writing data with xml format.

@author David Yu
@created May 24, 2010
protostuff-xml/src/main/java/io/protostuff/XmlOutput.java