Revision 5452 org.gvsig.raster/branches/org.gvsig.raster.2.4/org.gvsig.raster/org.gvsig.raster.lib/org.gvsig.raster.lib.buffer/org.gvsig.raster.lib.buffer.impl/src/main/java/org/gvsig/raster/lib/buffer/impl/DefaultBandFloat.java

View differences:

DefaultBandFloat.java
4 4
import org.gvsig.raster.lib.buffer.api.BufferManager;
5 5
import org.gvsig.raster.lib.buffer.api.NoData;
6 6
import org.gvsig.raster.lib.buffer.api.Band.BandFloat;
7
import org.gvsig.raster.lib.buffer.impl.exceptions.CopyFromBandException;
7 8

  
8 9
/**
9 10
 * @author fdiaz
......
65 66
    }
66 67

  
67 68
    @Override
68
    public void copyFrom(Band source) {
69
    public void copyFrom(Band source) throws CopyFromBandException {
69 70
        if(this.getColumns()!=source.getColumns() || this.getRows()!=source.getRows() || !(source instanceof DefaultBandFloat)){
70
            //FIXME:
71
            throw new RuntimeException();
71
            throw new CopyFromBandException(source,this);
72 72
        }
73 73
        System.arraycopy(((DefaultBandFloat)source).getData(), 0, this.data, 0, this.getRows()*this.getColumns());
74 74
    }

Also available in: Unified diff