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
public final class StreamSourceCache extends StreamSource implements org.apache.camel.StreamCache
AStreamCache
forStreamSource
s
-
-
Field Summary
-
Fields inherited from class javax.xml.transform.stream.StreamSource
FEATURE
-
-
Constructor Summary
Constructors Constructor Description StreamSourceCache(StreamSource source, org.apache.camel.Exchange exchange)
StreamSourceCache(org.apache.camel.StreamCache streamCache)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.camel.StreamCache
copy(org.apache.camel.Exchange exchange)
boolean
inMemory()
long
length()
void
reset()
void
writeTo(OutputStream os)
-
Methods inherited from class javax.xml.transform.stream.StreamSource
getInputStream, getPublicId, getReader, getSystemId, isEmpty, setInputStream, setPublicId, setReader, setSystemId, setSystemId
-
-
-
-
Constructor Detail
-
StreamSourceCache
public StreamSourceCache(StreamSource source, org.apache.camel.Exchange exchange) throws IOException
- Throws:
IOException
-
StreamSourceCache
public StreamSourceCache(org.apache.camel.StreamCache streamCache)
-
-
Method Detail
-
reset
public void reset()
- Specified by:
reset
in interfaceorg.apache.camel.StreamCache
-
writeTo
public void writeTo(OutputStream os) throws IOException
- Specified by:
writeTo
in interfaceorg.apache.camel.StreamCache
- Throws:
IOException
-
copy
public org.apache.camel.StreamCache copy(org.apache.camel.Exchange exchange) throws IOException
- 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
-
-