Code example for ObjectInputStream

Methods: defaultReadObjectreadObject

0
     * @param in the input stream 
     * @throws IOException 
     * @throws ClassNotFoundException 
     */ 
    private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException {
        in.defaultReadObject();
        collection = (Collection<E>) in.readObject();
    } 
 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE