Class JacksonStreamSource
- java.lang.Object
-
- io.wcm.caravan.io.jsontransform.source.JacksonStreamSource
-
- All Implemented Interfaces:
Source
,Closeable
,AutoCloseable
,Iterator<JsonElement>
@ProviderType public final class JacksonStreamSource extends Object implements Source
JSON source using the Jackson streaming parser.
-
-
Constructor Summary
Constructors Constructor Description JacksonStreamSource(InputStream input)
-
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
-
-
-
-
Constructor Detail
-
JacksonStreamSource
public JacksonStreamSource(InputStream input) throws com.fasterxml.jackson.core.JsonParseException, IOException
- Parameters:
input
- The input stream- Throws:
com.fasterxml.jackson.core.JsonParseException
- Error reading jsonIOException
- Error reading stream
-
-
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
-
-