public boolean checkFile(String path) throws IOException {
        InputStream file = new FileInputStream(path);
        int b1 = file.read(), b2 = file.read(), b3 = file.read(), b4 = file.read();
        return (b1 == 0x50 && b2 == 0x4B && b3 == 0x03 && b4 == 0x04);
    }