public class HexDump extends java.lang.Object
% od -t x1 < abra.txt 0000000 41 42 52 41 43 41 44 41 42 52 41 21 0000014Aditional documentation: see Section 5.5, p.811-815, of "Algorithms, 4th Edition", by Robert Sedgewick e Kevin Wayne.
Constructor and Description |
---|
HexDump() |
Modifier and Type | Method and Description |
---|---|
static void |
main(java.lang.String[] args)
Reads a binary file and writes out the bits,
N per line (N is a command-line argument),
representing each block of 8 bits in hexadecimal notation..
|
public static void main(java.lang.String[] args)
% more abra.txt ABRACADABRA! % java HexDump 16 < abra.txt 41 42 52 41 43 41 44 41 42 52 41 21 96 bits