Win a copy of Real-World Software Development: A Project-Driven Guide to Fundamentals in Java this week in the Agile and Other Processes forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Liutauras Vilda
  • Knute Snortum
  • Bear Bibeault
Sheriffs:
  • Devaka Cooray
  • Jeanne Boyarsky
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • salvin francis
Bartenders:
  • Tim Holloway
  • Piet Souris
  • Frits Walraven

What type of java object is this?

 
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello People¡¡¡
I need some help with this issue.

I have a java application installed in my pc that storages data in a file with extension .dat
I tried to open that file with netbeans, notepad, wordpad, excell, accent, and im not able to figure out what kind
of file is that and how to compile/edit/use it
I want to extract info from it and be able to use that file in another program im developing right now, but im
new in the java world and you can notice that...
When I open that file with notepad i get some information like "javax.swing.tree.DefaultTreeModel" or "asksAllowsChildrenL", so i can figure out im dealing with a file that have a java tree programmed on it, but i dont know how to make use of the information saved in that tree, or what would be the right extension for that file.

I attach the file to this post to see if you can give me a little help

BTW: The forum is not letting me attach the file as a ".dat" file, so i changed the extension to ".gif", if you download the file, please switch the extension to the original ".dat"

Thanks in advance¡
PPM.gif
[Thumbnail for PPM.gif]
 
Rancher
Posts: 618
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is a binary file (not a text file). I suspect that the program has serialized a Java object and wrote the serialized object to the file. The only way to I know how to deserialize it is have the original source do it. From your description, it doesn't sound like you have the source. Perhaps someone else knows a tool that parses serialized data.
 
Olivier López
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Tom Reilly wrote:This is a binary file (not a text file). I suspect that the program has serialized a Java object and wrote the serialized object to the file. The only way to I know how to deserialize it is have the original source do it. From your description, it doesn't sound like you have the source. Perhaps someone else knows a tool that parses serialized data.



Thanks for the answer¡
Actually yes, i have the software were i got that .dat file.
The software is inside a folder with the main executable .jar file, a lib folder with many .jar files inside, a couple .conf files in text format... the normal things inside a java application-

I just figured out that i can check how to read the .dat file looking inside the main .jar file.

Inside that .jar file, i found the resources folder, .class files, then another META-INF folder with the manifiest file.

Im reading the info inside some of the .class files, but i havent figured out yet how to use the .dat

Thanks again ;)
 
Sheriff
Posts: 21865
105
Eclipse IDE Spring VI Editor Chrome Java Ubuntu Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is no longer about user interfaces. Moving to JiG.
 
The only taste of success some people get is to take a bite out of you. Or this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!