Example usage for java.io ObjectInputStream defaultReadObject

List of usage examples for java.io ObjectInputStream defaultReadObject

Introduction

In this page you can find the example usage for java.io ObjectInputStream defaultReadObject.

Prototype

public void defaultReadObject() throws IOException, ClassNotFoundException 

Source Link

Document

Read the non-static and non-transient fields of the current class from this stream.

Usage

From source file:com.yubico.u2f.data.messages.AuthenticateResponse.java

private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException {
    in.defaultReadObject();
    try {/*from  www.ja v a2s  .  co  m*/
        clientDataRef = new ClientData(clientData);
    } catch (U2fBadInputException e) {
        throw new IOException(e);
    }
}

From source file:org.jgentleframework.integration.remoting.rmi.customsocket.GZipSocket_RMIClientSocketFactory.java

/**
 * Overrides default readObject method./*from   w ww.java2 s.c  om*/
 * 
 * @param stream
 * @throws IOException
 * @throws ClassNotFoundException
 */
private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException {

    stream.defaultReadObject();
    log = LogFactory.getLog(getClass());
}

From source file:com.webbfontaine.valuewebb.irms.impl.assignment.snapshot.SnapshotManager.java

private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException {
    stream.defaultReadObject();
}

From source file:com.appCrawler.utils.MyNicelyResynchronizingAjaxController.java

/**
 * Custom deserialization logic.//w w  w .j a  v a2s . co m
 * @param stream the stream from which to read the object
 * @throws IOException if an IO error occurs
 * @throws ClassNotFoundException if a class cannot be found
 */
private void readObject(final ObjectInputStream stream) throws IOException, ClassNotFoundException {
    stream.defaultReadObject();
    init();
}

From source file:com.phoenixst.plexus.util.EqualsTraverserPredicate.java

private void readObject(ObjectInputStream in) throws ClassNotFoundException, IOException {
    in.defaultReadObject();
    if (testEdge == null) {
        throw new InvalidObjectException("Test Graph.Edge is null.");
    }/*  www . j  av  a2 s. c  om*/
}

From source file:hr.fer.zemris.vhdllab.service.workspace.ProjectMetadata.java

private void readObject(java.io.ObjectInputStream in) throws IOException, ClassNotFoundException {
    in.defaultReadObject();
    Project project = getProject();//from w  w w  . jav  a2 s  .c o m
    for (File f : files) {
        f.setProject(project);
    }
    files = new HashSet<File>(files);
}

From source file:net.javacoding.jspider.core.task.work.SerializableSpiderHttpURLTask.java

private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException {
    in.defaultReadObject();
    this.foundURL = (URL) in.readObject();
    this.contextToString = (String) in.readObject();
    this.context = contexts.get(contextToString);
    if (this.context == null) {
        throw new IOException("Not find context !");
    }/*from  w w w. j  a  v  a2s  .c  om*/
}

From source file:com.lrodriguez.SoftLimitMRUCache.java

private void readObject(java.io.ObjectInputStream in) throws IOException, ClassNotFoundException {
    in.defaultReadObject();
    init();/*from w w  w  .j  a  v  a  2s.  c  o m*/
}

From source file:com.phoenixst.plexus.util.DefaultIncidentEdgeGetter.java

private void readObject(ObjectInputStream in) throws ClassNotFoundException, IOException {
    in.defaultReadObject();
    if (graph == null) {
        throw new InvalidObjectException("Graph is null.");
    }//from w w w  .  j  a va  2s.  c  o m
    if (traverserPredicate == null) {
        throw new InvalidObjectException("Traverser predicate is null.");
    }
}

From source file:com.hp.autonomy.hod.sso.HodAuthenticationPrincipal.java

private void readObject(final ObjectInputStream in) throws IOException, ClassNotFoundException {
    in.defaultReadObject();

    userMetadata = new HashMap<>();

    final int size = in.readInt();

    for (int i = 0; i < size; i++) {
        final String key = (String) in.readObject();
        final Serializable value = (Serializable) in.readObject();
        userMetadata.put(key, value);//from   w  ww  . j ava2 s  .c  o m
    }
}