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

package hep.rootio.implementation;

import java.io.ByteArrayInputStream;

public class RootByteArrayInputStream extends ByteArrayInputStream
{

    public RootByteArrayInputStream(byte buf[], int offset)
    {
        super(buf);
        this.offset = offset;
    }

    long getPosition()
    {
        return (long)(super.pos + offset);
    }

    void setPosition(long pos)
    {
        super.pos = (int)pos - offset;
    }

    private int offset;
}

 

Ads help maintain this website.