Code example for InputStream

Methods: reset

0
        } 
 
        @Override 
        public synchronized void reset() throws IOException { 
            mCount = mMarked;
            mStream.reset();
        } 
    } 
 
    /* CertPath tests */ 
    public void testGenerateCertPath() throws Exception { 
        KeyHolder ca = generateCertificate(true, null);
        KeyHolder cert1 = generateCertificate(true, ca);
        KeyHolder cert2 = generateCertificate(false, cert1);
        KeyHolder cert3 = generateCertificate(false, cert2);
 
        List<X509Certificate> certs = new ArrayList<X509Certificate>();
        certs.add(cert3.certificate);
        certs.add(cert2.certificate);
        certs.add(cert1.certificate);