FreeHEP API
Version v1.1

hep.io.root
Interface RootInput

All Superinterfaces:
DataInput
All Known Implementing Classes:
RootInputStream, RootRandomAccessFile

public interface RootInput
extends DataInput

Extension of DataInput with root specific utilities

Version:
$Id: RootInput.java,v 1.4 2002/06/12 23:15:13 duns Exp $
Author:
Tony Johnson (tonyj@slac.stanford.edu)

Method Summary
 void checkLength(AbstractRootObject object)
           
 RootClassFactory getFactory()
           
 long getPosition()
           
 RootRandomAccessFile getRAF()
           
 int readArray(byte[] data)
           
 int readArray(double[] data)
           
 int readArray(float[] data)
           
 int readArray(int[] data)
           
 String readNullTerminatedString(int maxLength)
           
 RootObjectRepresentation readObject(String type)
           
 RootObjectRepresentation readObjectRef()
           
 String readString()
           
 int readVersion()
           
 int readVersion(AbstractRootObject object)
           
 
Methods inherited from interface java.io.DataInput
readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, skipBytes
 

Method Detail

readString

public String readString()
                  throws IOException
IOException

readNullTerminatedString

public String readNullTerminatedString(int maxLength)
                                throws IOException
IOException

readVersion

public int readVersion()
                throws IOException
IOException

readVersion

public int readVersion(AbstractRootObject object)
                throws IOException
IOException

checkLength

public void checkLength(AbstractRootObject object)
                 throws IOException
IOException

getPosition

public long getPosition()
                 throws IOException
IOException

readArray

public int readArray(int[] data)
              throws IOException
IOException

readArray

public int readArray(byte[] data)
              throws IOException
IOException

readArray

public int readArray(float[] data)
              throws IOException
IOException

readArray

public int readArray(double[] data)
              throws IOException
IOException

readObject

public RootObjectRepresentation readObject(String type)
                                    throws IOException
IOException

readObjectRef

public RootObjectRepresentation readObjectRef()
                                       throws IOException
IOException

getFactory

public RootClassFactory getFactory()
Returns:
The RootClassFactory associated with this stream

getRAF

public RootRandomAccessFile getRAF()
Returns:
The RandomAccessFile associated with this stream

FreeHEP API
Version v1.1

Copyright © 2000-2002 FreeHEP, All Rights Reserved.