title: How to hijack the String.class
body: <p>So basically I just want to debug a couple of simple scripts by trying a new method, I have been successful in the past by hooking the URL.class (using the source from the jdk and recompling), however I realized that how can I print out a string, before it is even a string?</p>
  
  <p>I want to be able to write to file, or print out, any string that goes through the string class, but how can I create a pipe method when I am within the string class itself?</p>
  
  <p>I.e. a char array is being passed into the string, how do I grab that, make it a string and send it to the print out command from within the string class? If I am too vague I will provide some examples.</p>