Exemplo n.º 1
0
 public IteratorAnonymousInnerClassHelper(JarVerifier outerInstance, IEnumerator <Map_Entry <String, CodeSigner[]> > itor, IList <CodeSigner[]> signersReq, IEnumerator <String> enum2)
 {
     this.OuterInstance = outerInstance;
     this.Itor          = itor;
     this.SignersReq    = signersReq;
     this.Enum2         = enum2;
 }
Exemplo n.º 2
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: public void close() throws IOException
            public override void Close()
            {
                if (@is != null)
                {
                    @is.Close();
                }
                @is = null;
                Mev = null;
                Jv  = null;
            }
Exemplo n.º 3
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: VerifierStream(Manifest man, JarEntry je, InputStream is, JarVerifier jv) throws IOException
            internal VerifierStream(Manifest man, JarEntry je, InputStream @is, JarVerifier jv)
            {
                this.@is = @is;
                this.Jv  = jv;
                this.Mev = new ManifestEntryVerifier(man);
                this.Jv.BeginEntry(je, Mev);
                this.NumLeft = je.Size;
                if (this.NumLeft == 0)
                {
                    this.Jv.Update(-1, this.Mev);
                }
            }
Exemplo n.º 4
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: private JarEntry checkManifest(JarEntry e) throws IOException
        private JarEntry CheckManifest(JarEntry e)
        {
            if (e != null && JarFile.MANIFEST_NAME.EqualsIgnoreCase(e.Name))
            {
                Man = new Manifest();
                sbyte[] bytes = GetBytes(new BufferedInputStream(this));
                Man.Read(new ByteArrayInputStream(bytes));
                CloseEntry();
                if (DoVerify)
                {
                    Jv  = new JarVerifier(bytes);
                    Mev = new ManifestEntryVerifier(Man);
                }
                return((JarEntry)base.NextEntry);
            }
            return(e);
        }