pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stahle, Patrick" <patrick.sta...@te.com>
Subject RE: font cache & thread safe question
Date Thu, 10 Mar 2016 21:02:14 GMT
I mean that if multiple jvms using PDFBox library set the java environmental variable for fontcache
to the same location and they are all using the same fontcache directory will there be any
issues?

-----Original Message-----
From: John Hewson [mailto:john@jahewson.com] 
Sent: Thursday, March 10, 2016 3:59 PM
To: users@pdfbox.apache.org
Subject: Re: font cache & thread safe question


> On 10 Mar 2016, at 08:09, Stahle, Patrick <patrick.stahle@te.com> wrote:
> 
> Hi,
> 
> Is the font cache code in pdfbox thread safe? If it is, is it thread safe just for the
jvm or is it thread safe across multiple jvms?

Yes, it is, because it’s always accessed by FontMapperImpl in a thread safe manner. I’m
not sure what you mean about multiple JVMs, objects can’t be shared across JVMs.

> Thanks,
> Patrick
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: users-help@pdfbox.apache.org

Mime
View raw message