Example usage for java.io ObjectOutputStream defaultWriteObject

List of usage examples for java.io ObjectOutputStream defaultWriteObject

Introduction

In this page you can find the example usage for java.io ObjectOutputStream defaultWriteObject.

Prototype

public void defaultWriteObject() throws IOException 

Source Link

Document

Write the non-static and non-transient fields of the current class to this stream.

Usage

From source file:edu.scripps.fl.curves.plot.MyXYErrorRenderer.java

private void writeObject(ObjectOutputStream stream) throws IOException {
    stream.defaultWriteObject();
    SerialUtilities.writePaint(errorPaint, stream);
    SerialUtilities.writeStroke(errorStroke, stream);
}

From source file:com.haulmont.cuba.core.entity.BaseGenericIdEntity.java

private void writeObject(java.io.ObjectOutputStream out) throws IOException {
    if (__managed)
        __detached = true;//w  w  w .j  a  v  a 2s. c o  m
    out.defaultWriteObject();
}

From source file:net.sf.fspdfs.chartthemes.spring.ScaledDialPointer.java

/**
 * Provides serialization support.//from   w ww.  j a  v a 2  s .c  o m
 *
 * @param stream  the output stream.
 *
 * @throws IOException  if there is an I/O error.
 */
private void writeObject(ObjectOutputStream stream) throws IOException {
    stream.defaultWriteObject();
    SerialUtilities.writePaint(this.fillPaint, stream);
}

From source file:org.ajax4jsf.application.AjaxStateHolder.java

private void writeObject(java.io.ObjectOutputStream stream) throws IOException {

    synchronized (views) {
        stream.defaultWriteObject();
    }/* ww w  .  j  a v a  2s . c  om*/
}

From source file:org.kuali.rice.core.api.mo.AbstractDataTransferObject.java

private void writeObject(ObjectOutputStream out) throws IOException {
    synchronized (serializationMutex) {
        clearFutureElements();/*from   w w w  .  ja v  a  2s. c  o m*/
        out.defaultWriteObject();
    }
}

From source file:SerialIntList.java

/**
 * Get rid of unused array elements before serializing the array. This may
 * reduce the number of array elements to serialize. It also makes data.length ==
 * size, so there is no need to safe the (transient) size field. The
 * serialization mechanism will automatically call this method when
 * serializing an object of this class. Note that this must be declared
 * private./*from w w w .j  av  a  2  s  . com*/
 */
private void writeObject(ObjectOutputStream out) throws IOException {
    if (data.length > size)
        resize(size); // Compact the array.
    out.defaultWriteObject(); // Then write it out normally.
}

From source file:org.jfree.experimental.chart.plot.dial.DialBackground.java

/**
 * Provides serialization support./*from w w  w .  j  a va  2 s  .com*/
 *
 * @param stream  the output stream.
 *
 * @throws IOException  if there is an I/O error.
 */
private void writeObject(ObjectOutputStream stream) throws IOException {
    stream.defaultWriteObject();
    SerialUtilities.writePaint(this.paint, stream);
}

From source file:org.apache.openaz.xacml.admin.XacmlJDBCConnectionPool.java

private void writeObject(java.io.ObjectOutputStream out) throws IOException {
    initialized = false;
    out.defaultWriteObject();
}

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

private void writeObject(java.io.ObjectOutputStream out) throws IOException {
    if (!persistable) {
        throw new JRRuntimeException(EXCEPTION_MESSAGE_KEY_SNAPSHOT_CANNOT_BE_PERSISTED, (Object[]) null);
    }//from ww  w. j a  v a  2 s.c o m

    out.defaultWriteObject();
}

From source file:org.evosuite.utils.generic.GenericField.java

private void writeObject(ObjectOutputStream oos) throws IOException {
    oos.defaultWriteObject();
    // Write/save additional fields
    oos.writeObject(field.getDeclaringClass().getName());
    oos.writeObject(field.getName());//from  w w  w .ja v a 2 s . c  om
}