Package java.io

Examples of java.io.ObjectOutputStream.writeChars()


                                                                                IOException {
        if (objs.length != names.length) throw new IOException("array length isn't equal.");
        ObjectOutputStream out = new ObjectOutputStream(new FileOutputStream(fileName));
        out.writeInt(objs.length);
        for (int i = 0; i < objs.length; i++) {
            out.writeChars(names[i]);
            out.writeInt(objs[i].length);
            for (KeyPointN kp : objs[i]) {
                out.writeObject(kp);
            }
        }
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.