Re: [Collections] Circular Buffer

2012-03-07 Thread manoj mokashi
@James : >>Does the header include a record size ? Yes. I suppose you are wondering why i need to detect the headers if the record size is known. Actually its a corrupted archive in which the header size is correct, but the body size is not, and so i don't know where the body ends and hence where t

Re: [sanselan] Writing EXIF data to JPEG

2012-03-07 Thread Damjan Jovanovic
On Wed, Mar 7, 2012 at 10:37 PM, Kasper Føns wrote: > On 07-03-2012 19:41, Damjan Jovanovic wrote: >> >> On Wed, Mar 7, 2012 at 8:07 PM, Kasper Føns  wrote: >>> >>> On 07-03-2012 06:37, Damjan Jovanovic wrote: On Wed, Mar 7, 2012 at 12:46 AM, Kasper Føns    wrote: > > Hi Sanselan

Re: [sanselan] Writing EXIF data to JPEG

2012-03-07 Thread Kasper Føns
On 07-03-2012 19:41, Damjan Jovanovic wrote: On Wed, Mar 7, 2012 at 8:07 PM, Kasper Føns wrote: On 07-03-2012 06:37, Damjan Jovanovic wrote: On Wed, Mar 7, 2012 at 12:46 AM, Kasper Fønswrote: Hi Sanselan. I have a hard time finding out how to use Sanselan. Suppose I have some JPEG pictu

Re: [vfs] changing file permissions / chmod

2012-03-07 Thread Gary Gregory
Hi Damian, This feature has not been implemented in VFS. Feel free to create a JIRA and provide a patch :) Gary On Wed, Mar 7, 2012 at 11:58 AM, Damian Waszak wrote: > Hi all, > > Is it possible to change permissions on the file (before or after an > upload to SFTP server)? I would like to exec

Re: [sanselan] Writing EXIF data to JPEG

2012-03-07 Thread Damjan Jovanovic
On Wed, Mar 7, 2012 at 8:07 PM, Kasper Føns wrote: > On 07-03-2012 06:37, Damjan Jovanovic wrote: >> >> On Wed, Mar 7, 2012 at 12:46 AM, Kasper Føns  wrote: >>> >>> Hi Sanselan. >>> >>> I have a hard time finding out how to use Sanselan. >>> >>> Suppose I have some JPEG picture which I want to add

Re: [sanselan] Writing EXIF data to JPEG

2012-03-07 Thread Kasper Føns
On 07-03-2012 06:37, Damjan Jovanovic wrote: On Wed, Mar 7, 2012 at 12:46 AM, Kasper Føns wrote: Hi Sanselan. I have a hard time finding out how to use Sanselan. Suppose I have some JPEG picture which I want to add some attributes to. If for example I want to add some user comment or date I t

[vfs] changing file permissions / chmod

2012-03-07 Thread Damian Waszak
Hi all, Is it possible to change permissions on the file (before or after an upload to SFTP server)? I would like to execute something similar to chmod 0664 on the file. I have found it http://commons.apache.org/vfs/todo.html as a todo element ("Get/set the file permissions."), and last post

[ANNOUNCE] Commons Build Plugin 1.4

2012-03-07 Thread Gary Gregory
The Apache Commons team is pleased to announce the release of the Commons Build Plugin 1.4. The Commons Build Plugin is a Maven 2.x Ant Plugin used by Apache Commons builds. Version 1.4: 1. Fixes the announce mod_mbox link 2. Makes clear on the mailing list page that you have to be subscribed to

Re: [Collections] Circular Buffer

2012-03-07 Thread sebb
On 6 March 2012 06:47, manoj mokashi wrote: > The existing CircularFifoBuffer would suffice if it had an efficient > get(index) method, which > gets an element with the specified index from the end. I think it should be possible to do this efficiently as the underlying storage is an array. > btw

Re: [Collections] Circular Buffer

2012-03-07 Thread James Carman
Does the header include a record size? On Mar 7, 2012 5:32 AM, "manoj mokashi" wrote: > Sorry for always replying to the main thread, > i have not subscribed to the list, so my "in-reply-to" headers are not > correct. > > its more like a circular array i guess. > i needed to parse a binary file a

Re: [Collections] Circular Buffer

2012-03-07 Thread manoj mokashi
Sorry for always replying to the main thread, i have not subscribed to the list, so my "in-reply-to" headers are not correct. its more like a circular array i guess. i needed to parse a binary file and look for 512 byte headers. so i keep storing each byte in a 512 byte circular array and here i h

Re: [IO] Copy Streams with length and bufferSize

2012-03-07 Thread manoj mokashi
Have created JIRA issue IO-305, and attached the code and unit tests. - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org