Class RenameProcessor
- java.lang.Object
-
- io.wcm.caravan.io.jsontransform.processor.RenameProcessor
-
- All Implemented Interfaces:
Processor
,Source
,Closeable
,AutoCloseable
,Iterator<JsonElement>
@ProviderType public final class RenameProcessor extends Object implements Processor
Renames JSON elements by a given mapping.
-
-
Constructor Summary
Constructors Constructor Description RenameProcessor(Source source, Map<String,String> nameMapping)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
boolean
hasNext()
JsonElement
next()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining, remove
-
-
-
-
Method Detail
-
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interfaceIterator<JsonElement>
-
next
public JsonElement next()
- Specified by:
next
in interfaceIterator<JsonElement>
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
-