|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.milyn.SmooksUtil
public abstract class SmooksUtil
Smooks utilities.
| Method Summary | |
|---|---|
static String |
filterAndSerialize(ExecutionContext executionContext,
InputStream stream,
Smooks smooks)
Utility method to filter the content in the specified InputStream for the specified ExecutionContext. |
static void |
registerProfileSet(ProfileSet profileSet,
Smooks smooks)
Manually register a set of profiles with the profile store associated with the supplied Smooks instance. |
static void |
registerResource(SmooksResourceConfiguration resourceConfig,
Smooks smooks)
Register a SmooksResourceConfiguration on the supplied Smooks instance. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void registerProfileSet(ProfileSet profileSet,
Smooks smooks)
Smooks instance.
ProfileSets will typically be registered via the config, but it is useful
to be able to perform this task manually.
profileSet - The profile set to be registered.smooks - The Smooks instance on which to perform the configuration operation.
public static void registerResource(SmooksResourceConfiguration resourceConfig,
Smooks smooks)
SmooksResourceConfiguration on the supplied Smooks instance.
resourceConfig - The Content Delivery Resource definition to be registered.smooks - The Smooks instance on which to perform the configuration operation.
public static String filterAndSerialize(ExecutionContext executionContext,
InputStream stream,
Smooks smooks)
throws SmooksException
InputStream for the specified ExecutionContext.
Useful for testing purposes. In a real scenario, use
Smooks.filter(javax.xml.transform.Source,javax.xml.transform.Result,org.milyn.container.ExecutionContext).
The content of the returned String is totally dependent on the configured
DOMElementVisitor and SerializationUnit
implementations.
executionContext - Execution context for the filter.stream - Stream to be processed. Will be closed before returning.smooks - The Smooks instance through which to perform the filter and serialize operations.
IOException - Exception using or closing the supplied InputStream.
SmooksException - Excepting processing content stream.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||