Package org.apache.camel.util.xml
Class StreamSourceCache
java.lang.Object
javax.xml.transform.stream.StreamSource
org.apache.camel.util.xml.StreamSourceCache
- All Implemented Interfaces:
Source
,org.apache.camel.StreamCache
A
StreamCache
for StreamSource
s.
Important: All the classes from the Camel release that implements StreamCache
is NOT intended for end
users to create as instances, but they are part of Camels
stream-caching functionality.-
Field Summary
Fields inherited from class javax.xml.transform.stream.StreamSource
FEATURE
Fields inherited from interface org.apache.camel.StreamCache
DEFAULT_SPOOL_THRESHOLD
-
Constructor Summary
ConstructorDescriptionStreamSourceCache
(StreamSource source, org.apache.camel.Exchange exchange) StreamSourceCache
(org.apache.camel.StreamCache streamCache) -
Method Summary
Methods inherited from class javax.xml.transform.stream.StreamSource
getInputStream, getPublicId, getReader, getSystemId, setInputStream, setPublicId, setReader, setSystemId, setSystemId
-
Constructor Details
-
StreamSourceCache
public StreamSourceCache(StreamSource source, org.apache.camel.Exchange exchange) throws IOException - Throws:
IOException
-
StreamSourceCache
public StreamSourceCache(org.apache.camel.StreamCache streamCache)
-
-
Method Details
-
reset
public void reset()- Specified by:
reset
in interfaceorg.apache.camel.StreamCache
-
writeTo
- Specified by:
writeTo
in interfaceorg.apache.camel.StreamCache
- Throws:
IOException
-
copy
- Specified by:
copy
in interfaceorg.apache.camel.StreamCache
- Throws:
IOException
-
inMemory
public boolean inMemory()- Specified by:
inMemory
in interfaceorg.apache.camel.StreamCache
-
length
public long length()- Specified by:
length
in interfaceorg.apache.camel.StreamCache
-
position
public long position()- Specified by:
position
in interfaceorg.apache.camel.StreamCache
-
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in interfaceSource
- Overrides:
isEmpty
in classStreamSource
-