|
FreeHEP API Version current |
|||||||||
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 |
|
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 openedpublic RootFileReader(File file) throws IOException
file
- The file to openMethod Detail |
public int getBits()
getBits
in interface TObject
public RootClassFactory getClassFactory()
public void setClassLoader(ClassLoader loader)
public ClassLoader getClassLoader()
public Date getDatimeC()
getDatimeC
in interface TDirectory
public Date getDatimeM()
getDatimeM
in interface TDirectory
public RootClassFactory getFactory()
public TKey getKey(int index)
getKey
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 getKeyForTitle(String name)
getKeyForTitle
in interface TDirectory
public String getName()
TNamed
getName
in interface TNamed
public int getNbytesKeys()
getNbytesKeys
in interface TDirectory
public int getNbytesName()
getNbytesName
in interface TDirectory
public RootClass getRootClass()
getRootClass
in interface RootObject
public long getSeekDir()
getSeekDir
in interface TDirectory
public long getSeekKeys()
getSeekKeys
in interface TDirectory
public long getSeekParent()
getSeekParent
in interface TDirectory
public String getTitle()
TNamed
getTitle
in interface TNamed
public int getUniqueID()
getUniqueID
in interface TObject
public int getVersion()
getVersion
in interface TFile
public void close() throws IOException
TFile
close
in interface TFile
IOException
public Object get(String name) throws IOException, RootClassNotFound
IOException
RootClassNotFound
public int nKeys()
nKeys
in interface TDirectory
public List streamerInfo() throws IOException
streamerInfo
in interface TFile
IOException
public 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 |