public class EFile extends Object
| Constructor and Description |
|---|
EFile(String file)
Open file for reading objects from a serialized file in sequential order.
|
EFile(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
|
void |
doc()
Show online documentation.
|
String |
entriesToString()
Get a string representing file content.
|
int |
getNEntries()
Get number of events stored in the file.
|
int |
getVersion()
Get version of the input file.
|
promc.io.PEventFile.HEvent |
read()
Read next event
|
promc.io.PEventFile.HEvent |
read(int index)
Get object from a file using its index.
|
int |
size()
Get the number of events stored in the file.
|
boolean |
write(promc.io.PEventFile.HEvent.Builder ev)
Add a data structure to a file
|
public EFile(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 EFile(String file)
file - File namepublic int getVersion()
public boolean write(promc.io.PEventFile.HEvent.Builder ev)
ev - Data in form HEvent class.public int size()
public int getNEntries()
public String entriesToString()
public promc.io.PEventFile.HEvent read()
public promc.io.PEventFile.HEvent read(int index)
index - of the objectpublic boolean close()
public void doc()
DMelt 2.0 © DataMelt by jWork.ORG