public class DwgObjectReaderPool extends Object
Modifier and Type | Method and Description |
---|---|
IDwgObjectReader |
get(DwgObject obj,
String dwgVersion)
Get the specific reader for an object
|
static DwgObjectReaderPool |
getInstance() |
void |
put(Class dwgObjClass,
String dwgVersion,
IDwgObjectReader reader)
Stores in a map the different readers for objects
|
public static final DwgObjectReaderPool getInstance()
public IDwgObjectReader get(DwgObject obj, String dwgVersion)
obj
- Object we want to readdwgVersion
- version of dwg filepublic void put(Class dwgObjClass, String dwgVersion, IDwgObjectReader reader)
dwgObjClass
- Object's classdwgVersion
- version of dwg filereader
- Specific reader for the object