Package org.apache.camel.util.xml
Class SourceCache
- java.lang.Object
-
- javax.xml.transform.stream.StreamSource
-
- org.apache.camel.util.xml.StringSource
-
- org.apache.camel.util.xml.SourceCache
-
- All Implemented Interfaces:
Externalizable,Serializable,Source,org.apache.camel.StreamCache
public final class SourceCache extends StringSource implements org.apache.camel.StreamCache
StreamCacheimplementation forStringSources. Important: All the classes from the Camel release that implementsStreamCacheis NOT intended for end users to create as instances, but they are part of Camels stream-caching functionality.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class javax.xml.transform.stream.StreamSource
FEATURE
-
-
Constructor Summary
Constructors Constructor Description SourceCache(String data)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.camel.StreamCachecopy(org.apache.camel.Exchange exchange)booleaninMemory()longlength()voidreset()voidwriteTo(OutputStream os)-
Methods inherited from class org.apache.camel.util.xml.StringSource
getEncoding, getInputStream, getReader, getText, readExternal, toString, writeExternal
-
Methods inherited from class javax.xml.transform.stream.StreamSource
getPublicId, getSystemId, isEmpty, setInputStream, setPublicId, setReader, setSystemId, setSystemId
-
-
-
-
Constructor Detail
-
SourceCache
public SourceCache(String data)
-
-
Method Detail
-
reset
public void reset()
- Specified by:
resetin interfaceorg.apache.camel.StreamCache
-
writeTo
public void writeTo(OutputStream os) throws IOException
- Specified by:
writeToin interfaceorg.apache.camel.StreamCache- Throws:
IOException
-
copy
public org.apache.camel.StreamCache copy(org.apache.camel.Exchange exchange) throws IOException- Specified by:
copyin interfaceorg.apache.camel.StreamCache- Throws:
IOException
-
inMemory
public boolean inMemory()
- Specified by:
inMemoryin interfaceorg.apache.camel.StreamCache
-
length
public long length()
- Specified by:
lengthin interfaceorg.apache.camel.StreamCache
-
-