includes/org/apache/poi/hssf/record/RecordFactory.java
public static List<Record> createRecords(InputStream in) throws RecordFormatException {

		List<Record> records = new ArrayList<>(NUM_RECORDS);

		RecordFactoryInputStream recStream = new RecordFactoryInputStream(in, true);

		Record record;
		while ((record = recStream.nextRecord())!=null) {
			records.add(record);
		}

		return records;
	}
/**
	 * Create an array of records from an input stream
	 *
	 * @param in the InputStream from which the records will be obtained
	 *
	 * @return an array of Records created from the InputStream
	 *
	 * @exception RecordFormatException on error processing the InputStream
	 */
Create an array of records from an input stream

@param in the InputStream from which the records will be obtained

@return an array of Records created from the InputStream

@exception RecordFormatException on error processing the InputStream
Create an array of records from an input stream @param in the InputStream from which the records will be obtained @return an array of Records created from the InputStream @exception RecordFormatException on error processing the InputStream
public static List<Record> createRecords(InputStream in) throws RecordFormatException {
		List<Record> records = new ArrayList<>(NUM_RECORDS);
		RecordFactoryInputStream recStream = new RecordFactoryInputStream(in, true);
		Record record;
		while ((record = recStream.nextRecord())!=null) {
			records.add(record);
		}
		return records;
	}
public static List < Record > createRecords ( InputStream in ) throws RecordFormatException { List < Record > records = new ArrayList < > ( NUM_RECORDS ) ; RecordFactoryInputStream recStream = new RecordFactoryInputStream ( in , true ) ; Record record ; while ( ( record = recStream . nextRecord ( ) ) != null ) { records . add ( record ) ; } return records ; }
Create an array of records from an input stream
Create an array of records from an input stream