readAsJavaString

fun readAsJavaString(): String?

If this HeapValue if it represents a non null object reference to an instance of the String class that exists in the heap dump, returns a String instance with content that matches the string in the heap dump. Otherwise returns null.

This may trigger IO reads.