Class IteratorConvertTo

java.lang.Object
org.apache.camel.support.IteratorConvertTo
All Implemented Interfaces:
Closeable, AutoCloseable, Iterator<Object>

public final class IteratorConvertTo extends Object implements Iterator<Object>, Closeable
Wraps an Iterator so its returned values are automatically converted to a given type.
  • Constructor Details

    • IteratorConvertTo

      public IteratorConvertTo(org.apache.camel.Exchange exchange, Iterator<?> it, Class<?> type)
      Creates the convert iterator.
      Parameters:
      exchange - the exchange
      it - the iterator to wrap
      type - the type to convert to
  • Method Details