Thanks @Richard MacCutchan for giving sugguestion:
this code work for me:
public static void main(String[] args) throws IOException {
File file = new File("c:\\arena_l_lobby_land_map.h32");
FileInputStream in = null;
try {
in = new FileInputStream(file);
int c;
boolean d = false;
while ((c = in.read()) != -1) {
if (c > 0) {
d = true;
}
}
System.out.println(d);
} finally {
if (in != null) {
in.close();
}
}
}