Hi,

Gesendet: Mo, 18. Jan 2010 Von: Johannes Koch<[email protected]>

> Hi,
> 
> are there any rules about using the static final COSNames like 
> COSName.TYPE or COSName.getPDFName("Type") when implementing 
> getters/setters for PD... objects?
There are no such rules. IMHO I would prefer to use static COSNames if 
possible. All instances of 
COSName are held in a hashmap to avoid multiple instances of the class of to 
reduce the memory 
footprint of PDFBox. Consequently calling getPDFName costs more than just using 
the static constant.
 
> Johannes Koch

BR
Andreas Lehmkühler

Reply via email to