hexdump.java

来自「jpeg2000编解码」· Java 代码 · 共 30 行

JAVA
30
字号
package cryptix.tools;import java.io.*;import cryptix.util.core.Hex;/** * Reads the file specified as an argument and displays it as hex. * * @since Cryptix 3.1 * @author Ian Brown * @see cryptix.util.core.Hex */public class HexDump{	public static void main(String args[])	throws IOException	{		if (args.length != 1)		{			System.err.println("Usage: java HexDump filename");			System.exit(1);		}		InputStream in = new FileInputStream(args[0]);		byte[] data = new byte[in.available()];		in.read(data);		System.out.println(Hex.dumpString(data));	}}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?