public static void main(String[] args) {
File inFile = null;
if (0 < args.length) {
inFile = new File(args[0]);
}
BufferedInputStream bStream = null;
try {
int read;
byte[] bytes = new byte[1260];
bStream = new BufferedInputStream(new FileInputStream(inFile));
while ((read = bStream.read(bytes)) > 0) {
getMarker(read);
}
}
private static void getMarker(int read) {
}
バイト配列が作成された場所と、バイト配列内のデータにアクセスできる場所がわかりません。read
(おそらく long を使用して)マーカーを検索できるバイト配列になると思いましgetMarker
たが、 read は単なる整数値です。次に、バイト配列のデータはありますbytes
か? または、バイト配列内の実際のバイナリ値にアクセスして検索できますか?