read a 3D subset in java

I have a 32-bit floating-point 1000X2048X2048 dataset in my hdf file.

I want to read each frame of the file as a float array.

What should be the values of

        long[] startDims = dataset.getStartDims();
        long[] stride = dataset.getStride();
        long[] sizes = dataset.getSelectedDims();

to accomplish that?