RE: [io] Are FileUtils and IOUtils thread safe?

2012-09-29 Thread Martin Gainty
Hi Sebb public class FileUtils { /** * Instances should NOT be constructed in standard programming. */ public FileUtils() { super(); } /** * The number of bytes in a kilobyte. */ public static final long ONE_KB = 1024; /** * The number o

Re: [dbcp] newbie preparedStatement pooling question

2012-09-29 Thread miten mehta
Hi, Once you get connection from datasource/driver and call prepareStatement (sql) it will create / obtain one from pool as per API. Also stackoverflow has discussion on it.  The sql will be key in this case for the key pool and PreparedStatement the value. Regards, Miten. ___

Re: [io] Are FileUtils and IOUtils thread safe?

2012-09-29 Thread sebb
On 29 September 2012 04:20, Yungwei Chen wrote: > Hi, > > I would like to know if FileUtils and IOUtils are thread safe. Thanks. The classes themselves are immutable and so are thread safe. However, many of them use JVM classes that may not be thread safe. Also, methods that depend on the state