public SampleModel createSubsetSampleModel(int bands[]) { if (bands != null) { if (bands.length != 1) throw new RasterFormatException("MultiPixelPackedSampleModel has " + "only one band."); } SampleModel sm = createCompatibleSampleModel(width, height); return sm;
public SampleModel createSubsetSampleModel(int[] bands) { int numBands = bands.length; if (numBands != 1) throw new RasterFormatException("MultiPixelPackedSampleModel only" + " supports one band");  return new MultiPixelPackedSampleModel(dataType, width, height, numberOfBits, scanlineStride, dataBitOffset);
	public SampleModel createSubsetSampleModel(int bands[]) {		if (bands != null) {			if (bands.length != 1)				throw new RasterFormatException("MultiPixelPackedSampleModel has " + "only one band.");		}		SampleModel sm = createCompatibleSampleModel(width, height);		return sm;	}