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, setSystemId
public StringSource()
public StringSource(String text)
public InputStream getInputStream()
getInputStream
in class StreamSource
public Reader getReader()
getReader
in class StreamSource
public String getText()
public String getEncoding()
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
Apache Camel