Skip to content

Drop-in replacement for Sun's internal HexDumpEncoder class

License

Notifications You must be signed in to change notification settings

erik-wramner/HexDumpEncoder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HexDumpEncoder

This is a drop-in replacement for Sun's internal HexDumpEncoder class. Many projects I've seen have used sun.misc.HexDumpEncoder and recent Java versions produce warnings that it is an internal proprietary API that may be removed. What to do? Well, rewrite the code, or use this drop-in. Only change the package.

This encoder should be 100% compatible. The implementation has not been copied, so performance may be better or worse, but the output for the public methods should be the same. The unit tests attempt to prove that this is in fact true.

If you can live with slightly different output there are many alternatives out there, but this free class can be used in place of Sun's internal class with the same output. That offers a safe migration path to conservative developers, like me.

About

Drop-in replacement for Sun's internal HexDumpEncoder class

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages