Java, Search for a long in a binary file input, 8 byte aligned, big endian
问题 public static void main(String[] args) { File inFile = null; if (0 < args.length) { inFile = new File(args[0]); } BufferedInputStream bStream = null; try { int read; bStream = new BufferedInputStream(new FileInputStream(inFile)); while ((read = bStream.read()) > 0) { getMarker(read, bStream); System.out.println(read); } } catch (IOException e) { e.printStackTrace(); } finally { try { if (bStream != null)bStream.close(); } catch (IOException ex) { ex.printStackTrace(); } } } private static