public class DefaultEscherRecordFactory extends Object implements EscherRecordFactory
EscherRecordFactory
Modifier and Type | Field and Description |
---|---|
private static Class[] |
escherRecordClasses |
private static Map |
recordsMap |
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 the any children contained under that record.
|
private static Map |
recordsToMap(Class[] records)
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.
|
private static Class[] escherRecordClasses
private static Map recordsMap
public DefaultEscherRecordFactory()
public EscherRecord createRecord(byte[] data, int offset)
createRecord
in interface EscherRecordFactory
data
- The byte array containing the recordsoffset
- The starting offset into the byte arrayprivate static Map recordsToMap(Class[] records)
records
- The records to convertCopyright © 2016 Open Microscopy Environment