src/main/java/com/poiji/bind/Poiji.java
public static synchronized <T> void fromExcel(final InputStream inputStream,
                                                  final PoijiExcelType excelType,
                                                  final Class<T> type,
                                                  final PoijiOptions options,
                                                  final Consumer<? super T> consumer) {
        Objects.requireNonNull(excelType);

        final Unmarshaller unmarshaller = deserializer(inputStream, excelType, options);
        unmarshaller.unmarshal(type, consumer);
    }
public static synchronized <T> void fromExcel(final InputStream inputStream,
                                                  final PoijiExcelType excelType,
                                                  final Class<T> type,
                                                  final PoijiOptions options,
                                                  final Consumer<? super T> consumer) {
        Objects.requireNonNull(excelType);

        final Unmarshaller unmarshaller = deserializer(inputStream, excelType, options);
        unmarshaller.unmarshal(type, consumer);
    }
public static synchronized < T > void fromExcel ( final InputStream inputStream , final PoijiExcelType excelType , final Class < T > type , final PoijiOptions options , final Consumer < ? super T > consumer ) { Objects . requireNonNull ( excelType ) ; final Unmarshaller unmarshaller = deserializer ( inputStream , excelType , options ) ; unmarshaller . unmarshal ( type , consumer ) ; }
converts excel rows into a list of objects

@param inputStream excel file stream
@param excelType type of the excel file, xls or xlsx
@param type type of the root object.
@param <T> type of the root object.
@param options specifies to change the default behaviour of the poiji.
@param consumer represents an operation that accepts the type argument
@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)
converts excel rows into a list of objects