forked from 2211945/WIZARD_PR2_DOP
Strukturanpassung in Persistenz.java
parent
330548712e
commit
253f29e2a8
|
@ -12,8 +12,28 @@ import java.io.*;
|
|||
|
||||
public class Persistenz {
|
||||
|
||||
/*------------------------------------------*/
|
||||
// statische Konstanten
|
||||
/*------------------------------------------*/
|
||||
|
||||
/*------------------------------------------*/
|
||||
// statische Attribute(zB. zähler)
|
||||
/*------------------------------------------*/
|
||||
|
||||
final static String FILE_NAME = "WIZARD_DATA_";
|
||||
|
||||
/*------------------------------------------*/
|
||||
// Attribute jedes Objektes
|
||||
/*------------------------------------------*/
|
||||
|
||||
/*------------------------------------------*/
|
||||
// Konstruktoren (default und spezifische)
|
||||
/*------------------------------------------*/
|
||||
|
||||
/*------------------------------------------*/
|
||||
// statische Methoden
|
||||
/*------------------------------------------*/
|
||||
|
||||
public static boolean sindDatenVorhanden(String name) {
|
||||
File f = new File(FILE_NAME + name + ".ser");
|
||||
if (f.exists()) {
|
||||
|
@ -34,4 +54,21 @@ public class Persistenz {
|
|||
ois.close();
|
||||
return spiel;
|
||||
}
|
||||
|
||||
/*------------------------------------------*/
|
||||
// Getter und Setter
|
||||
/*------------------------------------------*/
|
||||
|
||||
/*------------------------------------------*/
|
||||
// @Overrides
|
||||
/*------------------------------------------*/
|
||||
|
||||
/*------------------------------------------*/
|
||||
// öffentliche Methodes
|
||||
/*------------------------------------------*/
|
||||
|
||||
/*------------------------------------------*/
|
||||
// Hilfsmethoden (privat)
|
||||
/*------------------------------------------*/
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue