Code example for Enumeration

Methods: hasMoreElementsnextElement

0
    public ContentInfo( 
        ASN1Sequence  seq)
    { 
        Enumeration   e = seq.getObjects();
 
        contentType = (DERObjectIdentifier)e.nextElement();
 
        if (e.hasMoreElements())
        { 
            content = ((DERTaggedObject)e.nextElement()).getObject();
        } 
    } 
 
    public ContentInfo( 
        DERObjectIdentifier contentType,
        DEREncodable        content)
    { 
        this.contentType = contentType;
        this.content = content;
    } 
Connect your IDE to all the code out there  Get Codota for Java