Code example for InputStream

Methods: close

0
 
    public void verify(InputStream is, int vcardType, final VCardParser parser)
            throws IOException, VCardException { 
        parser.addInterpreter(this);
        try { 
            parser.parse(is);
        } finally { 
            if (is != null) {
                try { 
                    is.close();
                } catch (IOException e) {
                } 
            } 
        } 
    } 
 
    @Override 
    public void onEntryStarted() { 
        super.onEntryStarted(); 
        AndroidTestCase.assertTrue(mIndex < mPropertyNodesVerifierElemList.size());
    }