// 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: TLeafI.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:
// TBranch
public class TLeafI extends SpecificRootObject
implements Leaf
{
public TLeafI()
{
}
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)
return new Integer(in.readInt());
int result[] = new int[len];
for(int i = 0; i < len; i++)
result[i] = in.readInt();
return result;
}
Object getValue(int index)
throws IOException
{
return branch.getValue(this, index);
}
public void setBranch(TBranch branch)
{
this.branch = branch;
}
private TBranch branch;
}
Ads help maintain this website.