Re: [Soaplab-users] Problem with Infile Path
Brought to you by:
marsenger
|
From: Mahmut U. <ul...@eb...> - 2008-04-09 10:44:20
|
Hi Martin,
> So, could you add this replaceAll("-", "_") method to soaplab2
> source
> code to avoid this kind of problem in the future for other
> users & maybe
>
> with other old pascal programs ?
>
> I am aware that you are waiting for my answer to this. But I
> hesitate... Next time, it may be another character, next time
> another... I probably still feel that this should be dealt with where
> it belongs - meaning in your application, or in wrapping your
> application. The minus sign is a valid character in a filename in all
> major platforms (unix, windows, mac) - at least I think so.
>
> Mahmut, what is your opinion?
I have noticed that the minus signs related to the numeric value of two
attributes in the UID machinery. Although it would not look pretty it
should not harm the uniqueness of the identifiers if we replace minus
sign characters by some other character.
Since what we do here is in some sense similar to what Java
File.createTempFile does in getting unique file identifiers, I checked
its source code. Their unique file identifier is based on a static
integer counter which is initialised by a "positive" random number,
however, after the maximum integer value reached the counter does have
minus values and so the unique file names have minus sign.
Regards,
Mahmut
|