public interface LisDataListener
Convenient for handling LIS files that are larger than physical memory. In this case the client should clear the LIS file instance at each invocation:
class DataListener implements LisDataListener { @Override public boolean dataRead(LisFile lisFile) { // Process curve data : // Clear curve data to save memory lisFile.clearCurves(); // Continue the process return true; } }
Modifier and Type | Method and Description |
---|---|
boolean |
dataRead(LisFile lisFile)
A notification from
LisFileReader indicating that a new
portion of data has been read into the specified LIS file. |
boolean dataRead(LisFile lisFile)
LisFileReader
indicating that a new
portion of data has been read into the specified LIS file.
After the client has processed the data, it may clean the curve data
in order to save memory storage. See LisFile.clearCurves()
.
It is also possible for the client to abort the reading process at this time, by returning false from the method. This will close all resources and throw an InterruptedException back to the client.
lisFile
- LIS file that has been populated with new data.
Never null.LisFileReader.read(boolean,boolean,LisDataListener)
Copyright © 2024 Petroware AS - https://petroware.no