public class FileNLO extends Object
Constructor and Description |
---|
FileNLO(String file)
Open file for reading objects from a serialized file in sequential order.
|
FileNLO(String file,
String option)
Open a file to write/read objects to/from a file in sequential order.
|
Modifier and Type | Method and Description |
---|---|
boolean |
close()
Close the file
|
String |
entriesToString()
Get a string representing file content.
|
pronlo.io.ProMCDescriptionFile.ProMCDescription |
fetchDescription()
Get description information.
|
void |
fetchDescriptionURL()
Get the description from URL file.
|
String |
getDescription() |
long |
getEvents() |
pronlo.io.ProMCHeaderFile.ProMCHeader |
getHeader()
Get a header file information
|
boolean |
getIsURL()
Is this a remote file?
|
String |
getLastModified()
Last modified
|
String |
getLogfileTxt()
Return info about the log file.
|
long |
getNEntries()
Get number of events stored in the file.
|
String |
getProMCDescriptionTxt()
Return ProMCDescription.proto
|
String |
getProMCHeaderTxt()
Return ProMCHeader.proto
|
String |
getProMCStatTxt()
Return ProMCStat.proto
|
String |
getProMCTxt()
Return ProMC.proto.
|
long |
getRequestedEvents() |
pronlo.io.ProMCStatFile.ProMCStat |
getStat()
Get statistics information.
|
Map<String,Object> |
getStoredProtoURL() |
long |
getVersion() |
ZipFile |
getZipFile()
Return this zip file.
|
pronlo.io.ProMC.ProMCEvent |
read()
Read next event
|
pronlo.io.ProMC.ProMCEvent |
read(long index)
Get object from a file using its index.
|
pronlo.io.ProMC.ProMCEvent |
read(String key)
Read an event using a key
|
String |
readLogfile()
Return logfile text
|
void |
readMeta()
Read all metadata
|
long |
size()
Get the number of events stored in the file.
|
public FileNLO(String file, String option)
file
- File nameoption
- Option to create the file. If "w" - write a file (or read)
file, if "r" only read created file.public FileNLO(String file)
file
- File namepublic boolean getIsURL()
public void fetchDescriptionURL()
public void readMeta()
public String getLogfileTxt()
public String readLogfile()
public String getLastModified()
public String getProMCDescriptionTxt()
public String getProMCHeaderTxt()
public String getProMCTxt()
public String getProMCStatTxt()
public long getVersion()
public String getDescription()
public long getEvents()
public long getRequestedEvents()
public ZipFile getZipFile()
public long size()
public long getNEntries()
public String entriesToString()
public pronlo.io.ProMC.ProMCEvent read()
public pronlo.io.ProMCHeaderFile.ProMCHeader getHeader()
public pronlo.io.ProMCStatFile.ProMCStat getStat()
public pronlo.io.ProMCDescriptionFile.ProMCDescription fetchDescription()
public pronlo.io.ProMC.ProMCEvent read(long index)
index
- of the objectpublic pronlo.io.ProMC.ProMCEvent read(String key)
key
- keypublic boolean close()
© Copyright 2005-2015 S.Chekanov. ProMC data format. HepSim repository.