File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Hex break down of the binary file [Solved] Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Hex break down of the binary file [Solved]" Watch "Hex break down of the binary file [Solved]" New topic
Author

Hex break down of the binary file [Solved]

martin naughton
Ranch Hand

Joined: Sep 09, 2009
Posts: 30

Hey guys,
Just a really simple question that probably will not affect my programming in any way. I was looking at the binary file using a hex editor an i noticed there was a break between characters that did not make any sense of what the hex would be used for.

After size in the picture there is a 00 04 hex that does not make what it could be used for.

Also after smoking there is a 00 01. Not sure what it means.

Also after rate there is a 00 08.

Does anyone know what these value means in the binary file or should i just ignore them?

thanks

Also i have used that java class that lets you look a you binary file in a string format.




[Thumbnail for binary_breakup1.jpg]


[Thumbnail for binary_breakup.jpg]


SCJA Done
SCJP Done
SCJD URLybird 1.3.1 Passed
Jianping Wang
Ranch Hand

Joined: May 29, 2010
Posts: 60
Hi

Do you really mean the SCJD data file? if so then you can search for article on how to get data according to data schema defined in requirements.

My code is ugly but works


It will give you some thing like

MAGIC VALUE: 257
LENGTH OF RECORD: 159
NUMBER OF FIELD: 7
Delete name location size smoking rate date owner
[0] [Palace ] [Smallville ] [2 ] [Y] [$150.00 ] [2005/07/27] [ ]
[0] [Castle ] [Smallville ] [6 ] [Y] [$220.00 ] [2005/11/19] [ ]
[0] [Excelsior ] [Smallville ] [4 ] [Y] [$230.00 ] [2003/02/05] [ ]


I use square box to show you the actual field area.



SCJP 6 with 93%
Oracle Database SQL Expert with 98%
martin naughton
Ranch Hand

Joined: Sep 09, 2009
Posts: 30

Thanks for the reply.

Sorry for the question. I just figured out that they are the field length for each field.
Carlos Morillo
Ranch Hand

Joined: Jun 06, 2009
Posts: 221

Hi Martin,

Please check the SCJD Forum FAQ and look for Roberto Perillo's Database file reader.

HTH,

Carlos.


SCSA, OCA, SCJP 5.0, SCJD http://www.linkedin.com/in/carlosamorillo
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Hex break down of the binary file [Solved]
 
Similar Threads
open a pdf inline using MIME in ie7
encrypt and decrypt a file in Java
hexadecimal?
back ground process id ??
Reading data from files