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.dataartisans.flink.dataflow.translation.wrappers.SinkOutputFormat.java

private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException {
    in.defaultReadObject();
    ObjectMapper mapper = new ObjectMapper();
    pipelineOptions = mapper.readValue(in, PipelineOptions.class);
}

From source file:fi.ilmoeuro.membertrack.membership.MembershipBrowser.java

private void readObject(ObjectInputStream is) throws IOException, ClassNotFoundException {
    is.defaultReadObject();
    memberships = Collections.emptyList();
    numPages = 0;/*www  . j a  v  a 2s .co  m*/
}

From source file:com.haulmont.cuba.web.sys.AppCookies.java

private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException {
    in.defaultReadObject();
    requestedCookies = new HashMap<>();
}

From source file:pt.minha.calibration.AbstractBenchmark.java

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

    begin = 0;//from   w  w  w . ja  v a  2s.com
    idx = 0;
    sizes = new double[samples];
    times = new double[samples];
}

From source file:com.phoenixst.collections.AndPredicate.java

private void readObject(ObjectInputStream in) throws ClassNotFoundException, IOException {
    in.defaultReadObject();
    if (left == null) {
        throw new InvalidObjectException("Left Predicate is null.");
    }/*from   w w  w .j a v  a 2  s.  c  o  m*/
    if (right == null) {
        throw new InvalidObjectException("Right Predicate is null.");
    }
}

From source file:com.projity.pm.dependency.HasDependenciesImpl.java

private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException {
    s.defaultReadObject();
    predecessors = new AssociationList();
    successors = new AssociationList();
}

From source file:pt.webdetails.cpk.elements.impl.KettleResult.java

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

    String resultXmlString = in.readUTF();
    try {/*from w  w  w .ja  v a2s  .  c  o m*/
        Document document = XMLHandler.loadXMLString(resultXmlString);
        Node resultNode = XMLHandler.getSubNode(document, Result.XML_TAG);
        this.result = new Result(resultNode);
    } catch (KettleException e) {
        this.logger.error("Unable to deserialize KettleResult.", e);
    }
}

From source file:com.phoenixst.plexus.DefaultOrientedForestView.java

private void readObject(ObjectInputStream in) throws ClassNotFoundException, IOException {
    in.defaultReadObject();
    if (graph == null) {
        throw new InvalidObjectException("Graph is null.");
    }// w w w.  jav  a  2s.  com
}

From source file:com.amazon.carbonado.repo.dirmi.StorableTypeTransport.java

private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException {
    in.defaultReadObject();
    try {/*ww  w  .  j  a v a 2 s.c  om*/
        LayoutFactory factory;
        if (LAYOUT_FACTORY_VERSION == 1) {
            // Older version of Carbonado cannot tolerate any property
            // changes, even if irrelevant. A new repository must be used
            // each time, which leads to excessive generated classes.
            // Updates to Carbonado and CarbonadoDirmi are required.
            factory = new LayoutFactory(MapRepositoryBuilder.newRepository());
        } else {
            factory = ReconstructedCache.THE.mLayoutFactory;
        }
        synchronized (factory) {
            mLayout = factory.readLayoutFrom(in);
        }
    } catch (RepositoryException e) {
        // Something needs to be logged, because an IOException destroys
        // the stream, making it more difficult to report the cause.
        LogFactory.getLog(StorableTypeTransport.class)
                .error("Unable to transport Storable layout information for " + mType.getName(), e);
        throw new IOException(e);
    }
}

From source file:org.nuclos.common.collect.collectable.searchcondition.CollectableComparisonWithOtherField.java

private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException {
    ois.defaultReadObject();
    // CollectableEntityField is not serializable:
    this.clctefOther = (CollectableEntityField) ois.readObject();
}