raf.readFully(magicBuf);
byte[] buf = new byte[4]; raf.readFully(buf); int sig = buf[0] & 0xFF | ((buf[1] & 0xFF) << 8) | ((buf[2] & 0xFF) << 16) | ((buf[3] & 0xFF) << 24); valid = sig == LOCSIG;
  private void checkZipFile() throws IOException, ZipException  {    byte[] magicBuf = new byte[4];    boolean validRead = true;    try       {	raf.readFully(magicBuf);      }     catch (EOFException eof)       {	validRead = false;      }     if (validRead == false || readLeInt(magicBuf, 0) != LOCSIG)      {	raf.close();	throw new ZipException("Not a valid zip file");      }  }