Versions Compared

Key

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

...

No Format
// Instantiate Smooks with the config...
Smooks smooks = new Smooks(new FileInputStream("smooks-config.xml"));
// Create an exec context - no profiles....
StandaloneExecutionContext executionContext = smooks.createExecutionContext();

// Filter the input message to the outputWriter, using the execution context...
smooks.filter(new StreamSource(messageInStream), new StreamResult(messageOutStream), executionContext);

...