Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Table of Contents
indent20px
styledisc

 
SVN - Download - Other Tutorials

Other Relevant Info:

...

No Format
Smooks smooks = new Smooks("smooks-config.xml");
StandaloneExecutionContextStringResult executionContextresult = smooks.createExecutionContextnew StringResult();

smooks.filter(new StreamSource(new InputStreamReader(new ByteArrayInputStream(messageIn), "UTF-8")), new StreamResult(writer), executionContext)result);

Of course, you'd typically cache the Smooks instance.

...