public void beginEntry(JarEntry je,ManifestEntryVerifier mev) throws IOException {
  if (je == null)   return;
  if (debug != null) {
    debug.println("beginEntry " + je.getName());
  }
  String name=je.getName();
  if (parsingMeta) {
    String uname=name.toUpperCase(Locale.ENGLISH);
    if ((uname.startsWith("META-INF/") || uname.startsWith("/META-INF/"))) {
      if (je.isDirectory()) {
        mev.setEntry(null,je);
        return;
      }
      if (uname.equals(JarFile.MANIFEST_NAME) || uname.equals(JarIndex.INDEX_NAME)) {
        return;
      }
      if (SignatureFileVerifier.isBlockOrSF(uname)) {
        parsingBlockOrSF=true;
        baos.reset();
        mev.setEntry(null,je);
        return;
      }
    }
  }
  if (parsingMeta) {
    doneWithMeta();
  }
  if (je.isDirectory()) {
    mev.setEntry(null,je);
    return;
  }
  if (name.startsWith("./"))   name=name.substring(2);
  if (name.startsWith("/"))   name=name.substring(1);
  if (sigFileSigners.get(name) != null || verifiedSigners.get(name) != null) {
    mev.setEntry(name,je);
    return;
  }
  mev.setEntry(null,je);
  return;
}

public void beginEntry ( JarEntry je , ManifestEntryVerifier mev ) throws IOException { if ( je == null ) return ; if ( debug != null ) { debug . println ( "beginEntry " + je . getName ( ) ) ; } String name = je . getName ( ) ; if ( parsingMeta ) { String uname = name . toUpperCase ( Locale . ENGLISH ) ; if ( ( uname . startsWith ( "META-INF/" ) || uname . startsWith ( "/META-INF/" ) ) ) { if ( je . isDirectory ( ) ) { mev . setEntry ( null , je ) ; return ; } if ( uname . equals ( JarFile . MANIFEST_NAME ) || uname . equals ( JarIndex . INDEX_NAME ) ) { return ; } if ( SignatureFileVerifier . isBlockOrSF ( uname ) ) { parsingBlockOrSF = true ; baos . reset ( ) ; mev . setEntry ( null , je ) ; return ; } } } if ( parsingMeta ) { doneWithMeta ( ) ; } if ( je . isDirectory ( ) ) { mev . setEntry ( null , je ) ; return ; } if ( name . startsWith ( "./" ) ) name = name . substring ( 2 ) ; if ( name . startsWith ( "/" ) ) name = name . substring ( 1 ) ; if ( sigFileSigners . get ( name ) != null || verifiedSigners . get ( name ) != null ) { mev . setEntry ( name , je ) ; return ; } mev . setEntry ( null , je ) ; return ; }
this method scans to see which entry we ' re parsing and keeps various state information depending on what type of file is being parsed .
