public class JsonToTuple extends Object implements IResourceBuilder
IResourceBuilder.CompactionType| Constructor and Description |
|---|
JsonToTuple() |
| Modifier and Type | Method and Description |
|---|---|
Tuple |
onEnd()
Callback that tells you the scan is done.
|
void |
onStart()
Callback to tell you you are about to receive new lines.
|
void |
onStream(Reader reader)
Callback for you to stream the remote resource file.
|
void |
prepare(org.thales.punch.settings.api.ISettingsMap settings)
An optional callback to prepare you builder with additional parameters.
|
public void prepare(org.thales.punch.settings.api.ISettingsMap settings)
IResourceBuilderprepare in interface IResourceBuilderpublic void onStart()
IResourceBuilderonStart in interface IResourceBuilderpublic void onStream(Reader reader) throws IOException
IResourceBuilderonStream in interface IResourceBuilderreader - the input stream to consume the resource fileIOException - in case of IO errorpublic Tuple onEnd()
IResourceBuilderYou should typically free any temporary storage, if any, used to build your resource.
onEnd in interface IResourceBuilderCopyright © 2023. All rights reserved.