public class SimpleResourceBuilder extends Object implements IResourceBuilder
This requires lots of ram. Use only for small resources.
IResourceBuilder.CompactionType
Constructor and Description |
---|
SimpleResourceBuilder() |
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
prepare
public void onStart()
IResourceBuilder
onStart
in interface IResourceBuilder
public Tuple onEnd()
IResourceBuilder
You should typically free any temporary storage, if any, used to build your resource.
onEnd
in interface IResourceBuilder
public void onStream(Reader reader) throws IOException
IResourceBuilder
onStream
in interface IResourceBuilder
reader
- the input stream to consume the resource fileIOException
- in case of IO errorCopyright © 2023. All rights reserved.