Java ObjectOutputStream Write loadAllPlaying(String path)

Here you can find the source of loadAllPlaying(String path)

Description

Used for loading the ParkourSessions.

License

Open Source License

Parameter

Parameter Description
path a parameter

Declaration

public static Object loadAllPlaying(String path) 

Method Source Code

//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;
    }
}

Related

  1. load(File file, final ClassLoader... loaders)
  2. load(String fileName)
  3. load(String filename)
  4. load(String name, Class resultClass)
  5. load(String path)
  6. loadData(Class expectedClass, String filename)
  7. loadData(HashMap data, String filename)
  8. loadGZipObject(File file)
  9. LoadMatFromFile(double[] mat, String filename)