Groups | Search | Server Info | Keyboard shortcuts | Login | Register
Groups > comp.lang.java.programmer > #5120
| From | Sebastian <sebastian@undisclosed.invalid> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | File object and serialization - information is lost |
| Date | 2011-06-08 19:59 +0200 |
| Organization | albasani.net |
| Message-ID | <isoda3$n3n$1@news.albasani.net> (permalink) |
Hello there, I seem to misunderstand a thing about java.io.File. I wanted to use the File object to transport information files existing in one place (basically, a directory listing) to another place. The API says File serves as an abstract representation of a file, and that it implements Serializable. However, after Serialization/Deserialization (in another JVM) the methods lastModified() and length() return 0. This is not what I expected. Is there a standard object to transport this information, or do I have to define my own? -- Sebastian
Back to comp.lang.java.programmer | Previous | Next — Next in thread | Find similar
File object and serialization - information is lost Sebastian <sebastian@undisclosed.invalid> - 2011-06-08 19:59 +0200
Re: File object and serialization - information is lost Lothar Kimmeringer <news200709@kimmeringer.de> - 2011-06-08 20:18 +0200
Re: File object and serialization - information is lost Sebastian <sebastian@undisclosed.invalid> - 2011-06-08 20:35 +0200
csiph-web