public void write(Text text) throws IOException {
        writeString(text.getText());

        if ( autoFlush ) {
            flush();
        }
    }
Writes the given {@link Text}.

@param text <code>Text</code> to output.
@throws IOException if the text could not be written
xmppserver/src/main/java/org/jivesoftware/util/XMLWriter.java