public static synchronized <T> void fromExcel(final File file, final Class<T> type, final Consumer<? super T> consumer) {
        final Unmarshaller unmarshaller = deserializer(file, PoijiOptionsBuilder.settings().build());
        unmarshaller.unmarshal(type, consumer);
    }
public static synchronized < T > void fromExcel ( final File file , final Class < T > type , final Consumer < ? super T > consumer ) { final Unmarshaller unmarshaller = deserializer ( file , PoijiOptionsBuilder . settings ( ) . build ( ) ) ; unmarshaller . unmarshal ( type , consumer ) ; }
converts excel rows into a list of objects

@param file excel file ending with .xls or .xlsx.
@param type type of the root object.
@param <T> type of the root object.
@param consumer output retrieves records
@throws PoijiException if an internal exception occurs during the mapping
process.
@throws InvalidExcelFileExtension if the specified excel file extension
is invalid.
@throws IllegalCastException if this Field object is enforcing Java language access control and the underlying field is either inaccessible or final.

@see Poiji#fromExcel(File, Class, PoijiOptions)