// 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:   TString.java

package hep.rootio.reps;

import hep.rootio.RootInput;
import hep.rootio.implementation.SpecificRootObject;

import java.io.DataInput;
import java.io.IOException;

public class TString extends SpecificRootObject
{

    public TString()
    {
    }

    public void read(RootInput in)
        throws IOException
    {
        int l = in.readUnsignedByte();
        if(l == 255)
            l = in.readInt();
        byte chars[] = new byte[l];
        for(int i = 0; i < l; i++)
            chars[i] = in.readByte();

        string = new String(chars);
    }

    public String toString()
    {
        return string;
    }

    public Object getProxy()
    {
        return string;
    }

    public static String getJavaType()
    {
        return "String";
    }

    private String string;
}

 

Ads help maintain this website.