public void write(String text) throws IOException {
        writeString(text);

        if ( autoFlush ) {
            flush();
        }
    }
<p>Print out a {@link String}, Perfoms
the necessary entity escaping and whitespace stripping.</p>

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