Here you can find the source of loadAllPlaying(String path)
Parameter | Description |
---|---|
path | a parameter |
public static Object loadAllPlaying(String path)
//package com.java2s; //License from project: Open Source License import java.io.FileInputStream; import java.io.ObjectInputStream; public class Main { /**/*from www . ja va 2 s. c o m*/ * Used for loading the ParkourSessions. * Thanks to Tomsik68 for this code. * * @param path */ public static Object loadAllPlaying(String path) { Object result = null; try { ObjectInputStream ois = new ObjectInputStream(new FileInputStream(path)); result = ois.readObject(); ois.close(); } catch (Exception ex) { ex.printStackTrace(); } return result; } }