public class StringSourceFactory extends Object implements SourceFactory
SourceFactory
implementation which supports creation of a StringSource
from a Document
, File
or String
payloadConstructor and Description |
---|
StringSourceFactory() |
StringSourceFactory(TransformerFactory transformerFactory) |
Modifier and Type | Method and Description |
---|---|
Source |
createSource(Object payload)
Create appropriate
Source instance for payload |
public StringSourceFactory()
public StringSourceFactory(TransformerFactory transformerFactory)
public Source createSource(Object payload)
SourceFactory
Source
instance for payload
createSource
in interface SourceFactory
payload
- The payload.