public class HFileDIF extends Object
Constructor and Description |
---|
HFileDIF(String file)
Open file for reading.
|
HFileDIF(String file,
String option)
Open a file to write/read data to/from a DIF file.
|
Modifier and Type | Method and Description |
---|---|
boolean |
close()
Close the file if needed.
|
void |
doc()
Show online documentation.
|
com.csam.dif.DIFSheet |
read()
Read data as sheet.
|
boolean |
write(double[] p)
Write double 1D array into the DIF file.
|
boolean |
write(H1D p)
Write 1-D histograms (including errors) into the DIF file.
|
boolean |
write(int[] p)
Write double 1D array into the DIF file.
|
boolean |
write(P0D p)
Write 1D array into the DIF file.
|
boolean |
write(P0I p)
Write 1D array into the DIF file.
|
boolean |
write(P1D p)
Write 2D array into the DIF file.
|
boolean |
write(PND p)
Write N-dimensional array into the DIF file.
|
boolean |
write(PNI p)
Write N-dimensional array into the DIF file.
|
boolean |
write(String[] p)
Write double 1D array into the DIF file.
|
public HFileDIF(String file, String option)
If the file name starts from http or ftp, we assume it is located on the Web and will attempt to read it from URL.
file
- File name. Can be located on URL if starts from http or ftp.option
- Option to create the file. If "w" - write a file (or read)
file, if "r" only read created file.public HFileDIF(String file)
file
- File namepublic boolean write(double[] p)
p
- input arraypublic boolean write(int[] p)
p
- input arraypublic boolean write(String[] p)
p
- input arraypublic boolean write(P0I p)
p
- input arraypublic boolean write(P0D p)
p
- input arraypublic boolean write(PND p)
p
- multidimensional arraypublic boolean write(PNI p)
p
- multidimensional (integer) arraypublic boolean write(H1D p)
p
- histogrampublic boolean write(P1D p)
p
- input arraypublic com.csam.dif.DIFSheet read()
public boolean close()
public void doc()
Jas4pp 1.5 © Java Analysis Studio for Particle Physics