Use java partial read data

Hello:
       When I am coding use java API,I meet a question.
        If I hava a one-dimensional array(eg:1,2,.....,10),now I want to read 3-7,how can I only use 5 size of space to read data.
        My way:
        H5.H5Sselect_hyperslab(dataspace_id, HDF5Constants.H5S_SELECT_SET,start, null, count, null);
  H5.H5Dread(dataset_id, HDF5Constants.H5T_IEEE_F64LE,HDF5Constants.H5S_ALL, filespace_id, HDF5Constants.H5P_DEFAULT,dset_data);
        But dset_data's size hava to be 10,or at least 7.
        So how can I use 5 space to read partial data?
        Thanks for help