public final class SourceCache
extends org.apache.camel.StringSource
implements org.apache.camel.StreamCache
StreamCache
implementation for StringSource
sFEATURE
Constructor and Description |
---|
SourceCache(String data) |
Modifier and Type | Method and Description |
---|---|
org.apache.camel.StreamCache |
copy(org.apache.camel.Exchange exchange) |
boolean |
inMemory() |
long |
length() |
void |
reset() |
void |
writeTo(OutputStream os) |
getEncoding, getInputStream, getReader, getText, readExternal, toString, writeExternal
getPublicId, getSystemId, setInputStream, setPublicId, setReader, setSystemId, setSystemId
public SourceCache(String data)
public void reset()
reset
in interface org.apache.camel.StreamCache
public void writeTo(OutputStream os) throws IOException
writeTo
in interface org.apache.camel.StreamCache
IOException
public org.apache.camel.StreamCache copy(org.apache.camel.Exchange exchange) throws IOException
copy
in interface org.apache.camel.StreamCache
IOException
public boolean inMemory()
inMemory
in interface org.apache.camel.StreamCache
public long length()
length
in interface org.apache.camel.StreamCache
Apache Camel