Class SourceCache

  • All Implemented Interfaces:
    Externalizable, Serializable, Source, org.apache.camel.StreamCache

    public final class SourceCache
    extends StringSource
    implements org.apache.camel.StreamCache
    StreamCache implementation for StringSources.

    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.

    See Also:
    Serialized Form
    • Constructor Detail

      • SourceCache

        public SourceCache​(String data)
    • Method Detail

      • reset

        public void reset()
        Specified by:
        reset in interface org.apache.camel.StreamCache
      • copy

        public org.apache.camel.StreamCache copy​(org.apache.camel.Exchange exchange)
                                          throws IOException
        Specified by:
        copy in interface org.apache.camel.StreamCache
        Throws:
        IOException
      • inMemory

        public boolean inMemory()
        Specified by:
        inMemory in interface org.apache.camel.StreamCache
      • length

        public long length()
        Specified by:
        length in interface org.apache.camel.StreamCache