Package org.esa.snap.core.dataio
Interface ProductReaderListener
-
public interface ProductReaderListener
This interface must be implemented by classes that want to trace the progress of a product read operation
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
handleBandRasterLineRead(Band destBand, int destOffsetX, int destOffsetY, int destWidth, int destHeight, ProductData destBuffer, int destBufferPos)
Called when a complete line has successfully been read.boolean
handleBandRasterRectRead(Band destBand, int destOffsetX, int destOffsetY, int destWidth, int destHeight, ProductData destBuffer)
-
-
-
Method Detail
-
handleBandRasterLineRead
boolean handleBandRasterLineRead(Band destBand, int destOffsetX, int destOffsetY, int destWidth, int destHeight, ProductData destBuffer, int destBufferPos)
Called when a complete line has successfully been read.- Parameters:
destBand
- the destination band which identifies the data source from which to read the sample valuesdestOffsetX
- the X-offset in the band's raster co-ordinatesdestOffsetY
- the current line (Y-offset) in the band's raster co-ordinatesdestWidth
- the width of region to be read given in the band's raster co-ordinatesdestHeight
- the height of region to be read given in the band's raster co-ordinatesdestBuffer
- the destination buffer which receives the sample values to be readdestBufferPos
- the offset within the buffer where the line which just has been read in is stored
-
handleBandRasterRectRead
boolean handleBandRasterRectRead(Band destBand, int destOffsetX, int destOffsetY, int destWidth, int destHeight, ProductData destBuffer)
- Parameters:
destBand
- the destination band which identifies the data source from which to read the sample valuesdestOffsetX
- the X-offset in the band's raster co-ordinatesdestOffsetY
- the current line (Y-offset) in the band's raster co-ordinatesdestWidth
- the width of region to be read given in the band's raster co-ordinatesdestHeight
- the height of region to be read given in the band's raster co-ordinatesdestBuffer
- the destination buffer which receives the sample values to be read
-
-