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:net.sf.jasperreports.chartthemes.settings.LegendSettings.java

@SuppressWarnings("deprecation")
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException {
    in.defaultReadObject();

    if (PSEUDO_SERIAL_VERSION_UID < JRConstants.PSEUDO_SERIAL_VERSION_UID_3_7_2) {
        positionValue = EdgeEnum.getByValue(position);

        position = null;/*from  w w  w.  jav a 2  s  .  c o  m*/

    }
}

From source file:org.jboss.jbossts.fileio.xalib.txdirs.dir.XAFileResourceManager.java

private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException {
    in.defaultReadObject();
    recovers = true; // indicate that the XAFileResourceManager recovers now
    initFREM();//from  w w w . j ava  2 s. c om
}

From source file:com.textocat.textokit.morph.opencorpora.resource.MorphDictionaryImpl.java

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

From source file:jopt.csp.util.SortableIntList.java

private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException {
    in.defaultReadObject();
    data = new int[in.readInt()];
    for (int i = 0; i < size; i++) {
        data[i] = in.readInt();//from   w w w . j a  v a  2 s. c  om
    }
}

From source file:com.zc.study.fileinjection.springintegration.MessageHeaders.java

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

From source file:org.nuxeo.ecm.directory.DirectoryEntryResolver.java

/**
 * Refetch the directory which is transient.
 *
 * @since 7.10/*from www.  j a v a  2  s  .  co m*/
 */
private void readObject(java.io.ObjectInputStream stream) throws IOException, ClassNotFoundException {
    stream.defaultReadObject();
    fetchDirectory();
}

From source file:BooleanArrayList.java

private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException {
    in.defaultReadObject();
    array = new boolean[in.readInt()];
    for (int i = 0; i < size; i++) {
        array[i] = in.readBoolean();/*from   w w  w .j  av  a 2 s .c o  m*/
    }
}

From source file:DoubleArrayList.java

private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException {
    in.defaultReadObject();
    array = new double[in.readInt()];
    for (int i = 0; i < size; i++) {
        array[i] = in.readDouble();// w ww.j  av a  2s . c  o  m
    }
}

From source file:CharArrayList.java

private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException {
    in.defaultReadObject();
    array = new char[in.readInt()];
    for (int i = 0; i < size; i++) {
        array[i] = in.readChar();// w  w w.  j ava  2 s  .co m
    }
}

From source file:ShortArrayList.java

private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException {
    in.defaultReadObject();
    array = new short[in.readInt()];
    for (int i = 0; i < size; i++) {
        array[i] = in.readShort();/*  ww w  .  ja  v  a 2 s.  c o  m*/
    }
}