Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature may not be available in some browsers.
private List entries = new ArrayList();
public void checkIn(File filepath)
{
XStream xstream = new XStream(new DomDriver());
File xmlFile = new File(filepath.toString()+".xml");
if(xmlFile.exists()){
try{
VersionManager oldVersion = new VersionManager();
FileInputStream fis = new FileInputStream(xmlFile.toString());
xstream.fromXML(fis, oldVersion);
int version = oldVersion.incVersion();
FileOutputStream fs = new FileOutputStream(filepath.toString()+".xml");
xstream.toXML(oldVersion, fs);
xstream.alias("versionmanager", VersionManager.class);
xstream.alias("entry", VersionManager.class);
System.out.println(version);
}
catch(Exception e){
e.printStackTrace();
}
}
else{
Date date = new Date();
VersionManager temp = new VersionManager(xmlFile.toString(), 1, false, date, filepath.getName());
try{
FileOutputStream fs = new FileOutputStream(filepath.toString()+".xml");
xstream.toXML(temp, fs);
}
catch (Exception e)
{
e.printStackTrace();
}
}
Oh man wie ich das hasse. Mich hat Google hier her geführt. Und ich frage mich, warum Du - der Threadstartet - uns nicht an Deinem Wissen teilhaben läßt?
Stell Dir mal vor jeder würde Forenposts so abschließen wie Du. Dann wünsch ich DIR viel Spass bei Deiner Googlesuche, wenn DU mal ein Problem hast.