Code example for Signature

Methods: update

0
        } 
 
        @Override 
        public void write(int b) throws IOException {
            try { 
                mSignature.update((byte) b);
            } catch (SignatureException e) {
                throw new IOException("SignatureException: " + e);
            } 
            super.write(b);
        } 
 
        @Override 
        public void write(byte[] b, int off, int len) throws IOException {
            try { 
                mSignature.update(b, off, len);
            } catch (SignatureException e) {
                throw new IOException("SignatureException: " + e);
            } 
            super.write(b, off, len);
        }