public class RootFileReader extends Object implements TFile
rootIOVersion| Constructor and Description |
|---|
RootFileReader(File file)
Open a root file for reading
|
RootFileReader(File file,
RootFileReader shared) |
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) |
RootFileReader(URL url,
Map options,
RootFileReader shared)
Open a file specified by URL for reading.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the file.
|
Object |
get(String name)
Get the object associated with a particular key
|
int |
getBits() |
RootClassFactory |
getClassFactory() |
ClassLoader |
getClassLoader() |
int |
getCompress() |
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() |
boolean |
hasKey(String name) |
boolean |
hasKey(String name,
int cycle) |
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() |
public RootFileReader(URL url, Map options, RootFileReader shared) throws IOException
The options argument is used to pass options to the file reader. Supported option include:
IOExceptionpublic RootFileReader(URL url, Map options) throws IOException
IOExceptionpublic RootFileReader(URL url) throws IOException
IOExceptionpublic RootFileReader(String file) throws IOException
file - The name of the file to openIOException - If the file cannot be openedpublic RootFileReader(File file) throws IOException
file - The file to openIOExceptionpublic RootFileReader(File file, RootFileReader shared) throws IOException
IOExceptionpublic 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)
TDirectorygetKey in interface TDirectorypublic TKey getKey(String name, int cycle)
TDirectorygetKey in interface TDirectorypublic TKey getKeyForTitle(String name)
getKeyForTitle in interface TDirectorypublic boolean hasKey(String name, int cycle)
hasKey in interface TDirectorypublic boolean hasKey(String name)
hasKey in interface TDirectorypublic int getCompress()
public 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 int getUniqueID()
getUniqueID in interface TObjectpublic int getVersion()
getVersion in interface TFilepublic void close()
throws IOException
TFileclose in interface TFileIOExceptionpublic Object get(String name) throws IOException, RootClassNotFound
IOExceptionRootClassNotFoundpublic int nKeys()
nKeys in interface TDirectorypublic List streamerInfo() throws IOException
streamerInfo in interface TFileIOExceptionpublic TKey streamerInfoKey()
streamerInfoKey in interface TFileJas4pp 1.5 © Java Analysis Studio for Particle Physics