public class StringSource extends StreamSource implements Externalizable
Source from a String which can be read as many times as required. Encoding
is default UTF-8.FEATURE| Constructor and Description |
|---|
StringSource() |
StringSource(String text) |
StringSource(String text,
String systemId) |
StringSource(String text,
String systemId,
String encoding) |
| Modifier and Type | Method and Description |
|---|---|
String |
getEncoding() |
InputStream |
getInputStream() |
Reader |
getReader() |
String |
getText() |
void |
readExternal(ObjectInput in) |
String |
toString() |
void |
writeExternal(ObjectOutput out) |
getPublicId, getSystemId, setInputStream, setPublicId, setReader, setSystemId, setSystemIdpublic StringSource()
public StringSource(String text)
public InputStream getInputStream()
getInputStream in class StreamSourcepublic Reader getReader()
getReader in class StreamSourcepublic String getText()
public String getEncoding()
public void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionApache Camel