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:it.unibo.alchemist.model.implementations.environments.OSMEnvironment.java

private void readObject(final ObjectInputStream s) throws IOException, ClassNotFoundException {
    s.defaultReadObject();
    initAll(mapResource);/*from   www  .j  av a2  s. c o  m*/
}

From source file:extern.AsymmetricStatisticalBarRenderer.java

/**
 * Provides serialization support.//from   w  ww  . j  a v a2  s  . c  om
 *
 * @param stream  the input stream.
 *
 * @throws IOException  if there is an I/O error.
 * @throws ClassNotFoundException  if there is a classpath problem.
 */
private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException {
    stream.defaultReadObject();
    this.errorIndicatorPaint = SerialUtilities.readPaint(stream);
    this.errorIndicatorStroke = SerialUtilities.readStroke(stream);
}

From source file:org.apache.cayenne.access.DataRowStore.java

private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException {

    in.defaultReadObject();

    // restore subjects
    this.eventSubject = createSubject();
}

From source file:org.hyperledger.fabric.sdk.EventHub.java

private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException {
    in.defaultReadObject();
    id = config.getNextID();/*from  w  ww.  j a  v a2s  . co m*/
}

From source file:net.ymate.platform.log.slf4j.Log4jLogger.java

private void readObject(final ObjectInputStream aInputStream) throws ClassNotFoundException, IOException {
    aInputStream.defaultReadObject();
    __logger = LogManager.getContext().getLogger(name);
    converter = createConverter();/*from   ww w . ja v  a2s  . c om*/
}

From source file:it.unimi.dsi.sux4j.mph.GOVMinimalPerfectHashFunction.java

private void readObject(final ObjectInputStream s) throws IOException, ClassNotFoundException {
    s.defaultReadObject();
    array = bitVector.bits();//from  w  w w .  jav a 2  s.c om
}

From source file:org.apache.torque.manager.AbstractBaseManager.java

/**
 * Helper methods for the <code>Serializable</code> interface.
 *
 * @param in The stream to read a <code>Serializable</code> from.
 * @throws IOException//  w  w w  .ja v a2s  .com
 * @throws ClassNotFoundException
 */
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException {
    in.defaultReadObject();
    // initialize the cache
    try {
        if (region != null) {
            setRegion(region);
        }
    } catch (Exception e) {
        log.error("Cache could not be initialized for region '" + region + "' after deserialization");
    }
}

From source file:org.apache.pig.backend.hadoop.executionengine.physicalLayer.relationalOperators.POFRJoin.java

private void readObject(ObjectInputStream is) throws IOException, ClassNotFoundException, ExecException {
    is.defaultReadObject();
    // setUpHashTable();
}

From source file:userinterface.graph.PrismErrorRenderer.java

/**
 * Provides serialization support.//  www  .  j  a v  a 2  s.c  om
 *
 * @param stream  the input stream.
 *
 * @throws IOException  if there is an I/O error.
 * @throws ClassNotFoundException  if there is a classpath problem.
 */
private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException {
    stream.defaultReadObject();
    this.errorStroke = SerialUtilities.readStroke(stream);
}

From source file:org.trade.ui.chart.renderer.PivotRenderer.java

/**
 * Provides serialization support./*from w w w .j  a v a2 s .c  om*/
 * 
 * @param stream
 *            the input stream.
 * 
 * 
 * 
 * @throws IOException
 *             if there is an I/O error. * @throws ClassNotFoundException if
 *             there is a classpath problem.
 */
private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException {
    stream.defaultReadObject();
    this.legendShape = SerialUtilities.readShape(stream);
}