question: public PixelInterleavedSampleModel ( int dataType , int w , int h , int pixelStride , int scanlineStride , int bandOffsets [ ] ) { super ( dataType , w , h , pixelStride , scanlineStride , bandOffsets ) ; int minBandOff = this . bandOffsets [ 0 ] ; int maxBandOff = this . bandOffsets [ 0 ] ; for ( int i = 1 ; i < this . bandOffsets . length ; i ++ ) { minBandOff = Math . min ( minBandOff , this . bandOffsets [ i ] ) ; maxBandOff = Math . max ( maxBandOff , this . bandOffsets [ i ] ) ; } maxBandOff -= minBandOff ; if ( maxBandOff > scanlineStride ) { throw new IllegalArgumentException ( "Offsets between bands must be" + " less than the scanline " + " stride" ) ; } if ( pixelStride * w > scanlineStride ) { throw new IllegalArgumentException ( "Pixel stride times width " + "must be less than or " + "equal to the scanline " + "stride" ) ; } if ( pixelStride < maxBandOff ) { throw new IllegalArgumentException ( "Pixel stride must be greater" + " than or equal to the offsets" + " between bands" ) ; } }
target:  Constructs a PixelInterleavedSampleModel with the specified parameters. The number of bands will be given by the length of the bandOffsets array.