FileDocCategorySizeDatePackage
ASN1SetOf.javaAPI DocAndroid 1.5 API2480Wed May 06 22:41:06 BST 2009org.apache.harmony.security.asn1

ASN1SetOf

public class ASN1SetOf extends ASN1ValueCollection
This class represents ASN.1 SetOf type.
see
ASN.1

Fields Summary
Constructors Summary
public ASN1SetOf(ASN1Type type)

        super(TAG_SETOF, type);
    
Methods Summary
public static org.apache.harmony.security.asn1.ASN1SetOfasArrayOf(ASN1Type type)
Creates array wrapper of provided ASN1 type

param
type - ASN1 type to be wrapped
return
- a wrapper for ASN1 set of type.
throws
IOException
see
org.apache.harmony.security.asn1.ASN1ValueCollection


        return new ASN1SetOf(type) {
            public Object getDecodedObject(BerInputStream in)
                    throws IOException {
                return ((List) in.content).toArray();
            }

            public Collection getValues(Object object) {
                return Arrays.asList((Object[]) object);
            }
        };
    
public java.lang.Objectdecode(BerInputStream in)

        in.readSetOf(this);

        if (in.isVerify) {
            return null;
        }
        return getDecodedObject(in);
    
public final voidencodeContent(BerOutputStream out)

        out.encodeSetOf(this);
    
public final voidsetEncodingContent(BerOutputStream out)

        out.getSetOfLength(this);