Object o = dis.readObject();
if(dis.bytesLeft() == 0) return new TaggedObject(tag&0x1f,o);
Vector v = new Vector();
- v.add(o);
+ v.addElement(o);
return buildSequence(dis,v);
} else {
return new UnknownObject(tag,readBytes(length));
protected Vector buildSequence(int length) throws IOException { return buildSequence(new InputStream(this,length),new Vector()); }
protected Vector buildSequence(InputStream dis,Vector v) throws IOException {
try {
- for(;;) v.add(dis.readObject());
+ for(;;) v.addElement(dis.readObject());
} catch(EOFException e) {
return v;
}