Beispiel #1
0
        /// <summary>
        /// update an array of bytes.
        /// </summary>

//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: public void update(int n, byte[] b, int off, int len, sun.security.util.ManifestEntryVerifier mev) throws IOException
        public virtual void Update(int n, sbyte[] b, int off, int len, ManifestEntryVerifier mev)
        {
            if (n != -1)
            {
                if (ParsingBlockOrSF)
                {
                    Baos.Write(b, off, n);
                }
                else
                {
                    mev.update(b, off, n);
                }
            }
            else
            {
                ProcessEntry(mev);
            }
        }
Beispiel #2
0
        /// <summary>
        /// update a single byte.
        /// </summary>

//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: public void update(int b, sun.security.util.ManifestEntryVerifier mev) throws IOException
        public virtual void Update(int b, ManifestEntryVerifier mev)
        {
            if (b != -1)
            {
                if (ParsingBlockOrSF)
                {
                    Baos.Write(b);
                }
                else
                {
                    mev.update((sbyte)b);
                }
            }
            else
            {
                ProcessEntry(mev);
            }
        }