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.gsma.mobileconnect.discovery.DiscoveryResponse.java

private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException {
    in.defaultReadObject();
    if (in.readBoolean()) {
        this.responseData = new ObjectMapper().configure(JsonParser.Feature.AUTO_CLOSE_SOURCE, false)
                .readValue(in, JsonNode.class);
    }/* w  w  w .  j a  v  a  2  s.c  om*/
}

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

private void readObject(ObjectInputStream in) throws ClassNotFoundException, IOException {
    in.defaultReadObject();
    if (closureArray == null) {
        throw new InvalidObjectException("Closure array is null.");
    }/*  w  w  w.ja va2  s  . c o  m*/
    if (containsNull(closureArray)) {
        throw new InvalidObjectException("Closure array has a null element.");
    }
}

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

private void readObject(ObjectInputStream in) throws ClassNotFoundException, IOException {
    in.defaultReadObject();
    if (transformerArray == null) {
        throw new InvalidObjectException("Transformer array is null.");
    }//from   w  w  w  .j  a v a 2s  .co  m
    if (containsNull(transformerArray)) {
        throw new InvalidObjectException("Transformer array has a null element.");
    }
}

From source file:org.jannocessor.proxy.CodeNodeProxy.java

private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException {
    in.defaultReadObject();
    // currently doesn't do anything extra
}

From source file:org.mule.util.CaseInsensitiveHashMap.java

/**
 * Read the map in using a custom routine.
 *//*from   w ww  .  j  av a  2s . co  m*/
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException {
    in.defaultReadObject();
    doReadObject(in);
}

From source file:org.geoserver.security.DataAccessLimits.java

private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException {
    in.defaultReadObject();
    readFilter = readFilter(in);/*from  www.  ja va2s. c om*/
}

From source file:org.digidoc4j.impl.bdoc.SKCommonCertificateVerifier.java

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

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

private void readObject(ObjectInputStream in) throws ClassNotFoundException, IOException {
    in.defaultReadObject();
    if (predicateArray == null) {
        throw new InvalidObjectException("Predicate array is null.");
    }// w  ww.j  a  v a2s.c  o m
    if (containsNull(predicateArray)) {
        throw new InvalidObjectException("Predicate array has a null element.");
    }
}

From source file:edu.pdx.its.portal.routelandia.entities.Station.java

/**
 * implement get back the latlng object after serializable*
 * @param in/*  w ww . ja va2s  .co m*/
 * @throws IOException
 * @throws ClassNotFoundException
 */
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException {
    in.defaultReadObject();
    latLngList.add(new LatLng(in.readDouble(), in.readDouble()));
}

From source file:net.sf.jasperreports.data.cache.ColumnDataSnapshot.java

private void readObject(java.io.ObjectInputStream in) throws IOException, ClassNotFoundException {
    this.persistable = true;

    in.defaultReadObject();
}