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

ASN1SequenceOf

public class ASN1SequenceOf extends ASN1ValueCollection
This class represents ASN.1 Sequence OF type.
see
ASN.1

Fields Summary
Constructors Summary
public ASN1SequenceOf(ASN1Type type)

        super(TAG_SEQUENCE, type);
    
Methods Summary
public static org.apache.harmony.security.asn1.ASN1SequenceOfasArrayOf(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 ASN1SequenceOf(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.readSequenceOf(this);

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

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

        out.getSequenceOfLength(this);