Package edu.princeton.cs.algs4
Class HexDump
- Object
-
- edu.princeton.cs.algs4.HexDump
-
public class HexDump extends Object
TheHexDump
class provides a client for displaying the contents of a binary file in hexadecimal.For additional documentation, see Section 5.5 of Algorithms, 4th Edition by Robert Sedgewick and Kevin Wayne.
See also
BinaryDump
andPictureDump
. For more full-featured versions, see the Unix utilitiesod
(octal dump) andhexdump
(hexadecimal dump).- Author:
- Robert Sedgewick, Kevin Wayne
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
main(String[] args)
Reads in a sequence of bytes from standard input and writes them to standard output using hexadecimal notation, k hex digits per line, where k is given as a command-line integer (defaults to 16 if no integer is specified); also writes the number of bits.
-
-
-
Method Detail
-
main
public static void main(String[] args)
Reads in a sequence of bytes from standard input and writes them to standard output using hexadecimal notation, k hex digits per line, where k is given as a command-line integer (defaults to 16 if no integer is specified); also writes the number of bits.- Parameters:
args
- the command-line arguments
-
-