Home > Archive > Java Help > February 2006 > java file recovery
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
java file recovery
|
|
| vinny_joe@yahoo.com 2006-02-22, 7:01 pm |
| can we write a file recovery pgm in java???? if possible plz tell me
how to do it...
| |
| TechBookReport 2006-02-22, 7:01 pm |
| vinny_joe@yahoo.com wrote:
> can we write a file recovery pgm in java???? if possible plz tell me
> how to do it...
>
By it's nature file recovery is platform specific; Java is not. So the
short answer is no. If you want to write code specific to one file
system then you can use JNI as an interface.
--
Java reviews: http://www.techbookreport.com/JavaIndex.html
| |
| Roedy Green 2006-02-23, 3:57 am |
| On 22 Feb 2006 06:20:00 -0800, vinny_joe@yahoo.com wrote, quoted or
indirectly quoted someone who said :
>can we write a file recovery pgm in java???? if possible plz tell me
>how to do it...
That has question has several possible interpretations, for example.
1. something like Norton Unerase. That requires JNI.
2. a backup/restore program. Easy to write in pure Java.
3. something that looks and damaged files and recovers what good data
it can. Theses are highly application specific. Hard to write
generally, but no harder in Java.
What did you have in mind?
--
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
| |
|
|
| Roedy Green 2006-02-23, 7:03 pm |
| On Thu, 23 Feb 2006 09:29:36 +0100, Thomas Weidenfeller
<nobody@ericsson.invalid> wrote, quoted or indirectly quoted someone
who said :
>No, because the backup phase can't read, and the restore phase can't
>recreate all the attributes (hidden, system, whatever) the original file
>might have had. Java lacks that API.
These are fairly easy to pull off with a little JNI. For example you
can access the extra time tracking in Windows using
http://mindprod.com/products1.html#FILETIMES
the one thing that would be more difficult is ensuring you have
exclusive access to the files so somebody can change them while you
are the middle of backing them up.
See http://mindprod.com/projects/backup.html for my student project
outline on writing your own backup utility.
--
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
|
|
|
|
|