Limited Offer Get 25% off — use code BESTW25
No AI No Plagiarism On-Time Delivery Free Revisions
Claim Now

Implement a basic hex editor in Java that will run inside

Your Task
You need to implement a basic hex editor in Java that will run inside the PuTTY window.
A hex editor is a tool that you use throughout your programming career, you may find yourself using
this tool long after you finish OOF. So, take the opportunity to design it well.
Your hex editor will be able to:
1) Open a file of any size and not crash.
2) Show both hex and ASCII representation of the data in a neat well formatted grid.
3) Be able to jump to a given address using a command.
4) Be able to get and set the value of a byte at a given address using a command.
When you run the program, you will provide it with the name of a file.
Then the program will show the first 256 bytes of the file, then prompt the user for a command.
The valid commands will be:
1) “exit” to exit the program.
2) “goto” to select a specific byte.
3) “jump” to select a byte relative to the currently selected byte.
4) “set” to set a byte
5) “hex” to switch to hex view.
6) “ascii” to switch to ASCII view (more on this later)
7) “truncate” to delete all bytes after the selected byte.
8) “next” to move to the next page of bytes
9) “previous” to move to the previous page of bytes.
10) “find” to find a string in the data.
Tip: only look at the first letter of the commands so that the user can use “e” for exit.
String.startsWith() may be handy for this.
The program should produce a message at the bottom of the screen saying what the last command
did, for example if the user used “ascii” the program should say “Switched to ASCII Mode”
How do we even begin to do this?
First you need to have some understanding on how files work and how numbers are represented.
I have provided some reading on the next few pages.

The post Implement a basic hex editor in Java that will run inside appeared first on My Assignment Online.

Plagiarism Free Assignment Help

Expert Help With This Assignment — On Your Terms

Native UK, USA & Australia writers Deadline from 3 hours 100% Plagiarism-Free — Turnitin included Unlimited free revisions Free to submit — compare quotes
Scroll to Top