commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary Gregory <>
Subject Re: [vfs] Use File.createTempFile in DefaultFileReplicator
Date Sat, 04 May 2013 18:01:55 GMT
Hello Keith,

Are you looking at the latest code from trunk?

I do not see a call to createTempFile in DefaultFileReplicatorin trunk.


On Wed, May 1, 2013 at 12:36 PM, Keith Turner <> wrote:

> I was looking at the code to see if collisions could occur and if it would
> retry in the case where collisions did occur.  It seems that collisions can
> occur, since the name is based on a random 16 bit in.  It seems like the
> code will throw an error if a collision occurs, but I am not sure.
> Why doesn't org.apache.commons.vfs2.impl.DefaultFileReplicator use
> File.createTempFile(String, String, File)?  I was thinking of
> subclassing DefaultFileReplicator and overriding to use
> File.createTempFile().  But I was wondering if there was an issue with this
> approach.

E-Mail: |
Java Persistence with Hibernate, Second Edition<>
JUnit in Action, Second Edition <>
Spring Batch in Action <>

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message