Package java.io

Examples of java.io.ObjectInputValidation


            oos.defaultWriteObject();
        }

        private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException {
            ois.defaultReadObject();
            ois.registerValidation(new ObjectInputValidation() {
                public void validateObject() throws InvalidObjectException {
                    if (!Integer.toString(number).equals(string)) {
                        throw new InvalidObjectException("No match");
                    }
                }
View Full Code Here

TOP

Related Classes of java.io.ObjectInputValidation

Copyright © 2018 www.massapicom. 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.