Files
tustu/app/aE/PropertiesExtensionInAePackage.java
2026-01-11 20:30:56 +00:00

42 lines
1.4 KiB
Java

package aE;
import V.ExceptionInVPackage;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.util.Properties;
public class PropertiesExtensionInAePackage extends Properties {
private String ExceptionInVPackage = "";
public PropertiesExtensionInAePackage(String paramString) {
this.ExceptionInVPackage = paramString;
}
public void ExceptionInVPackage(File paramFile) {
try {
FileOutputStream fileOutputStream = new FileOutputStream(paramFile);
store(fileOutputStream, "Vehicles Attributes.\n#" + this.ExceptionInVPackage + " by Philip Tobin");
} catch (Exception exception) {
exception.printStackTrace();
throw new ExceptionInVPackage("Error Saving Vehicle. \n" + exception.getMessage() + "\nSee log file for more detail.");
}
}
public g b(File paramFile) {
try {
FileInputStream fileInputStream = new FileInputStream(paramFile);
load(fileInputStream);
} catch (Exception exception) {
exception.printStackTrace();
throw new ExceptionInVPackage("Error occured trying to open vehicle in directory\n" + ((paramFile != null) ? paramFile.getName() : "null") + "\nError Message: " + exception.getMessage() + "\nCheck Log for details.");
}
return this;
}
}
/* Location: /home/rewrich/Downloads/TunerStudioMS/TunerStudioMS/!/aE/g.class
* Java compiler version: 8 (52.0)
* JD-Core Version: 1.1.3
*/