From what I see in the javadoc you could create an instance of the class Awk and use the stream interface for input and output. You might have to jump through a couple of hoops to make the big string (character based) look like an inputstream (byte based). Correspondingly getting the PrintStream to fill up a StringWriter or StringBuilder could be a minor challenge. But definitely doable. At...
2009-02-03 21:13:04 UTC in Jawk