// Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/kpdus/jad.html
// Decompiler options: packimports(3)
// Source File Name: TLeafObject.java
package hep.rootio.reps;
import hep.rootio.RootInput;
import hep.rootio.implementation.*;
import java.io.DataInput;
import java.io.IOException;
// Referenced classes of package hep.rootio.reps:
// TLeafI, TBranch
public class TLeafObject extends SpecificRootObject
implements Leaf
{
public TLeafObject()
{
}
public Object readData(RootInput in, int index)
throws IOException
{
TLeafI count = (TLeafI)get("fLeafCount");
Object length = count != null ? count.getValue(index) : get("fLen");
int len = ((Integer)length).intValue();
if(count == null && len == 1)
{
String type = in.readString();
in.readByte();
return in.readObject(type);
}
Object result[] = new Object[len];
for(int i = 0; i < len; i++)
{
String type = in.readString();
in.readByte();
result[i] = in.readObject(type);
}
return ((Object) (result));
}
public void setBranch(TBranch tbranch)
{
}
}
Ads help maintain this website.