Package java.io

Examples of java.io.FileInputStream.readObject()


        if (dataFile.exists() && dataFile.canRead()
            && dataFile.isFile()) {
          try {
            ObjectInputStream input = new ObjectInputStream(
                new FileInputStream(dataFile));
            Object result = input.readObject();
            // Type erasure, all that stuff ... not good ... noooot
            // good.
            input.close();
            workerStack = (Map<UUID, WorkerInfo>) result;
          } catch (Exception ex) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.