package class9_1_FileChannelAndByteBuffer; import java.io.*; /** * Note: This class does not detect an unexpected end of file. */ public class Reader { public static void main(String[] args) { try(InputStream is = new BufferedInputStream(new FileInputStream("binary.bin"))) { int byteAsInt = is.read(); // for(int i = 0; i