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();
    } 
 
    //----------------------------------------------------------------------- 
    /** 
     * Constructor that wraps (not copies). 
     * 
     * @param set the set to decorate, must not be null 
     * @throws IllegalArgumentException if set is null 
     */ 
    private UnmodifiableSortedSet(SortedSet<E> set) {
        super(set);
    } 
 
Stop searching for code, let great code find you!  Add Codota to your java IDE