public class BinaryPerformanceIO extends Object implements IPerformanceIO
IPerformanceIO. It uses
FileInputStreamto read and write in the file system. Therefore, it implements a customised
Performancepersistence protocol, in which every operation executed when writing a performance into a file must be executed when reading a performance from a file.
|Constructor and Description|
|Modifier and Type||Method and Description|
public void openPerformance(Performance performance, String fileUrl)
Performancefrom the file system.
performance- the reference in which the read performance will be saved.
fileUrl- the URL of the file which contains the performance to be read.
public void savePerformance(Performance performance, String fileUrl)
Performanceto the file system.
performance- the performance to be persisted.
fileUrl- the URL of the file in which
performancewill be persisted.