📄 readme
字号:
This directory contains a small example of a scanner for binary files.The example tries to detect if an input file is a java class file bychecking if the first 4 bytes contain the magic number 0xCAFEBABE.It uses a custom Reader class that copies bytes to characters one toone. The characters the scanner gets to read are the bytes from theinput stream without any conversion. Many thanks to Stephen Ostermillerfor providing the custom Reader class, the original version of thatclass is available from http://www.smo.f2s.com/utils/See the JFlex manual for details on how to scan binaries and howthis is different from scanning text files.Files:binary.flex the scanner specStraightStreamReader.java the custom reader class (by Stephen Ostermiller)Makefile rules for make to compile and run the exampleREADME this file
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -