|
FreeHEP API Version current |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthep.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 |
|
RootFileReader(String file)
Open a root file for reading. |
|
RootFileReader(URL url)
Open a file specified by URL for reading with the default options. |
|
RootFileReader(URL url,
Map options)
Open a file specified by URL for reading. |
|
| Method Summary | |
void |
close()
Close the file. |
Object |
get(String name)
Get the object associated with a particular key |
int |
getBits()
|
RootClassFactory |
getClassFactory()
|
ClassLoader |
getClassLoader()
|
Date |
getDatimeC()
|
Date |
getDatimeM()
|
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 |
int |
getNbytesKeys()
|
int |
getNbytesName()
|
RootClass |
getRootClass()
Get the class of this object |
long |
getSeekDir()
|
long |
getSeekKeys()
|
long |
getSeekParent()
|
String |
getTitle()
object title |
int |
getUniqueID()
|
int |
getVersion()
|
int |
nKeys()
|
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(URL url,
Map options)
throws IOException
The options argument is used to pass options to the file reader. Supported option include:
public RootFileReader(URL url)
throws IOException
public RootFileReader(String file)
throws IOException
file - The name of the file to open
IOException - If the file cannot be opened
public RootFileReader(File file)
throws IOException
file - The file to open| Method Detail |
public int getBits()
getBits in interface TObjectpublic RootClassFactory getClassFactory()
public void setClassLoader(ClassLoader loader)
public ClassLoader getClassLoader()
public Date getDatimeC()
getDatimeC in interface TDirectorypublic Date getDatimeM()
getDatimeM in interface TDirectorypublic RootClassFactory getFactory()
public TKey getKey(int index)
getKey in interface TDirectorypublic TKey getKey(String name)
TDirectory
getKey in interface TDirectory
public TKey getKey(String name,
int cycle)
TDirectory
getKey in interface TDirectorypublic TKey getKeyForTitle(String name)
getKeyForTitle in interface TDirectorypublic String getName()
TNamed
getName in interface TNamedpublic int getNbytesKeys()
getNbytesKeys in interface TDirectorypublic int getNbytesName()
getNbytesName in interface TDirectorypublic RootClass getRootClass()
getRootClass in interface RootObjectpublic long getSeekDir()
getSeekDir in interface TDirectorypublic long getSeekKeys()
getSeekKeys in interface TDirectorypublic long getSeekParent()
getSeekParent in interface TDirectorypublic String getTitle()
TNamed
getTitle in interface TNamedpublic int getUniqueID()
getUniqueID in interface TObjectpublic int getVersion()
getVersion in interface TFile
public void close()
throws IOException
TFile
close in interface TFileIOException
public Object get(String name)
throws IOException,
RootClassNotFound
IOException
RootClassNotFoundpublic int nKeys()
nKeys in interface TDirectory
public List streamerInfo()
throws IOException
streamerInfo in interface TFileIOExceptionpublic TKey streamerInfoKey()
streamerInfoKey in interface TFile
|
FreeHEP API Version current |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||