Package org.apache.poi.ddf
Class DefaultEscherRecordFactory
- java.lang.Object
-
- org.apache.poi.ddf.DefaultEscherRecordFactory
-
- All Implemented Interfaces:
EscherRecordFactory
public class DefaultEscherRecordFactory extends Object implements EscherRecordFactory
Generates escher records when provided the byte array containing those records.- See Also:
EscherRecordFactory
-
-
Constructor Summary
Constructors Constructor Description DefaultEscherRecordFactory()
Creates an instance of the escher record factory
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EscherRecord
createRecord(byte[] data, int offset)
Generates an escher record including any children contained under that record.protected Supplier<? extends EscherRecord>
getConstructor(short options, short recordId)
-
-
-
Method Detail
-
createRecord
public EscherRecord createRecord(byte[] data, int offset)
Description copied from interface:EscherRecordFactory
Generates an escher record including any children contained under that record. An exception is thrown if the record could not be generated.- Specified by:
createRecord
in interfaceEscherRecordFactory
- Parameters:
data
- The byte array containing the recordsoffset
- The starting offset into the byte array- Returns:
- The generated escher record
-
getConstructor
protected Supplier<? extends EscherRecord> getConstructor(short options, short recordId)
-
-