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:org.vaadin.spring.i18n.Translator.java

private void readObject(ObjectInputStream io) throws IOException, ClassNotFoundException {
    io.defaultReadObject();
    analyzeTargetClass();// ww  w  . j  a  va  2 s  .c o m
}

From source file:com.dataartisans.flink.dataflow.translation.functions.FlinkMultiOutputDoFnFunction.java

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

}

From source file:org.seasar.mayaa.impl.source.ApplicationResourceSourceDescriptor.java

private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
    in.defaultReadObject();
    _application = CycleUtil.getServiceCycle().getApplicationScope();
}

From source file:com.hp.autonomy.hod.client.api.authentication.AuthenticationToken.java

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

    // values may be null if deserialized from an invalid stream
    //noinspection ConstantConditions
    if (expiry == null || id == null || secret == null || entityType == null || tokenType == null) {
        throw new InvalidObjectException("Values must not be null");
    }//from w ww .  ja v  a 2s  . com
}

From source file:SerialIntList.java

/**
 * Restore the transient size field after deserializing the array. The
 * serialization mechanism automatically calls this method.
 *///from   ww w . j ava  2 s  .c  o m
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException {
    in.defaultReadObject(); // Read the array normally.
    size = data.length; // Restore the transient field.
}

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

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

From source file:hr.fer.zemris.vhdllab.service.hierarchy.Hierarchy.java

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

    this.initNodes();
}

From source file:org.pentaho.reporting.engine.classic.core.modules.misc.datafactory.sql.JndiConnectionProvider.java

private void readObject(final ObjectInputStream stream) throws IOException, ClassNotFoundException {
    stream.defaultReadObject();
    dataSourceService = ClassicEngineBoot.getInstance().getObjectFactory().get(DataSourceService.class);
}

From source file:com.limegroup.gnutella.licenses.AbstractLicense.java

/**
 * Assume that all serialized licenses were verified.
 * (Otherwise they wouldn't have been serialized.
 *//*from w w w.ja v a  2  s .  c o m*/
private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException {
    ois.defaultReadObject();
    verified = VERIFIED;
}

From source file:biomine.bmvis2.pipeline.EdgeSimplificationOperation.java

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