KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > lowagie > bc > asn1 > DEREncodableVector


1 package com.lowagie.bc.asn1;
2
3 import java.util.Vector;
4
5 /**
6  * a general class for building up a vector of DER encodable objects -
7  * this will eventually be superceded by ASN1EncodableVector so you should
8  * use that class in preference.
9  */

10 public class DEREncodableVector
11 {
12     private Vector v = new Vector();
13
14     public void add(
15         DEREncodable obj)
16     {
17         v.addElement(obj);
18     }
19
20     public DEREncodable get(
21         int i)
22     {
23         return (DEREncodable)v.elementAt(i);
24     }
25
26     public int size()
27     {
28         return v.size();
29     }
30 }
31
Popular Tags