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