|
FreeHEP API Version v1.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--hep.io.root.RootFileReader
A class for reading root files.
Field Summary |
Fields inherited from interface hep.io.root.interfaces.TNamed |
rootIOVersion |
Constructor Summary | |
RootFileReader(File file)
Open a root file for reading The DefaultClassFactory will be used for creating classes |
|
RootFileReader(File file,
RootClassFactory factory)
Open a root file for reading |
|
RootFileReader(String file)
Open a root file for reading. |
Method Summary | |
void |
close()
Close the file. |
Object |
get(String name)
Get the object associated with a particular key |
ClassLoader |
getClassLoader()
|
RootClassFactory |
getFactory()
|
TKey |
getKey(int index)
|
TKey |
getKey(String name)
Gets the key for a specific name. |
TKey |
getKey(String name,
int cycle)
Gets the key for a specific name and cycle |
TKey |
getKeyForTitle(String name)
|
String |
getName()
object identifier |
String |
getTitle()
object title |
Object |
getValue(String member)
Returns the value of a named member variable. |
int |
nKeys()
|
RootClass |
rootClass()
Returns the class name of this object |
void |
setClassLoader(ClassLoader loader)
Set the classloader to use for checking for interfaces and loading proxies. |
List |
streamerInfo()
Get the StreamerInfo |
TKey |
streamerInfoKey()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RootFileReader(String file) throws IOException
file
- The name of the file to openDefaultClassFactory
public RootFileReader(File file) throws IOException
file
- The file to openDefaultClassFactory
public RootFileReader(File file, RootClassFactory factory) throws IOException
file
- The file to openfactory
- The factory to use for creating root classesMethod Detail |
public void close() throws IOException
TFile
close
in interface TFile
IOException
public RootClassFactory getFactory()
public String getName()
TNamed
getName
in interface TNamed
public String getTitle()
TNamed
getTitle
in interface TNamed
public int nKeys()
nKeys
in interface TDirectory
public TKey getKey(int index)
getKey
in interface TDirectory
public TKey getKeyForTitle(String name)
getKeyForTitle
in interface TDirectory
public TKey getKey(String name)
TDirectory
getKey
in interface TDirectory
public TKey getKey(String name, int cycle)
TDirectory
getKey
in interface TDirectory
public TKey streamerInfoKey()
streamerInfoKey
in interface TFile
public RootClass rootClass()
RootObject
rootClass
in interface RootObject
public Object getValue(String member)
RootObject
getValue
in interface RootObject
RootObject
,
Array
public List streamerInfo() throws IOException
streamerInfo
in interface TFile
IOException
public Object get(String name) throws IOException
IOException
public void setClassLoader(ClassLoader loader)
public ClassLoader getClassLoader()
|
FreeHEP API Version v1.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |