@Override
    public String toString() {
        return writer.toString();
    }
Returns the contents of the internal string buffer where
all the received characters have been collected. Only works
when this object was constructed using the empty default
constructor or by passing a {@link StringWriter} to the
other constructor.
tika-core/src/main/java/org/apache/tika/sax/ToTextContentHandler.java