class CopyEndPoints implements IEndPointsProcessor {

    @Override
    public void process(final DataBlock in, final DataBlock out) {
	out.range(0, npoints).set(out.get(npoints));
	int n = out.getLength();
	out.range(n - npoints, n).set(out.get(n - npoints - 1));
    }

    public  CopyEndPoints(int npoints);

}