public class DefaultEscherRecordFactory extends java.lang.Object implements EscherRecordFactory
EscherRecordFactory
Constructor and Description |
---|
DefaultEscherRecordFactory()
Creates an instance of the escher record factory
|
Modifier and Type | Method and Description |
---|---|
EscherRecord |
createRecord(byte[] data,
int offset)
Generates an escher record including any children contained under that record.
|
static boolean |
isContainer(short options,
short recordId) |
protected static java.util.Map<java.lang.Short,java.lang.reflect.Constructor<? extends EscherRecord>> |
recordsToMap(java.lang.Class<?>[] recClasses)
Converts from a list of classes into a map that contains the record id as the key and
the Constructor in the value part of the map.
|
public DefaultEscherRecordFactory()
public EscherRecord createRecord(byte[] data, int offset)
EscherRecordFactory
createRecord
in interface EscherRecordFactory
data
- The byte array containing the recordsoffset
- The starting offset into the byte arrayprotected static java.util.Map<java.lang.Short,java.lang.reflect.Constructor<? extends EscherRecord>> recordsToMap(java.lang.Class<?>[] recClasses)
recClasses
- The records to convertpublic static boolean isContainer(short options, short recordId)
Copyright 2018 The Apache Software Foundation or its licensors, as applicable.