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:com.ojcoleman.ahni.util.DoubleVector.java

private void writeObject(ObjectOutputStream out) throws IOException {
    out.defaultWriteObject();
    out.writeInt(_data.length);//from w w w  .j  av a 2 s.c o  m
    for (int i = 0; i < _size; i++) {
        out.writeDouble(_data[i]);
    }
}

From source file:de.metas.ui.web.session.UserSession.java

private void writeObject(final java.io.ObjectOutputStream out) throws IOException {
    out.defaultWriteObject();

    logger.trace("User session serialized: {}", this);
}

From source file:org.photovault.replication.ChangeDTO.java

/**
 Serialize this object.// ww  w.j  a  va2 s . c o m
 <p>
 The object state is serialized in following order:
 <ul>
 <li>changeUUID</li>
 <li>class of the owning change history</li>
 <li>uuid of the owning change history (and the target object)</li>
 <li>Number of parent changes as integer</li>
 <li>UUIDs of every parent change</li>
 <li>Number of changed fields</li>
 <li>The field change objects, sorted by field name in ascending order</li>
 </ul>
 @param os The stream into which the change is written
 @throws java.io.IOException If writing the change fails.
 */
private void writeObject(ObjectOutputStream os) throws IOException {
    os.defaultWriteObject();
    os.writeObject(changeUuid);
    writeChangeMetadata(os);
    writeChange(os);
}

From source file:net.sf.nmedit.jtheme.image.SVGImageResource.java

private void writeObject(java.io.ObjectOutputStream out) throws IOException {
    if (!svgDataInitialized) {
        svgDataInitialized = true;/*  w  ww. j a v  a  2 s .  c  om*/
        readData();
    }
    out.defaultWriteObject();
}

From source file:be.fgov.kszbcss.rhq.websphere.config.ConfigObjectInvocationHandler.java

private synchronized void writeObject(ObjectOutputStream stream) throws IOException {
    if (config != null) {
        throw new IllegalStateException("Configuration object has not been detached");
    }//from w ww.  j  a v  a 2s .  c om
    stream.defaultWriteObject();
}

From source file:com.mgmtp.jfunk.common.util.Configuration.java

/**
 * @serialData The name of the zip file.
 *//*ww w .ja v a2 s  .c  o m*/
private void writeObject(final ObjectOutputStream oos) throws IOException {
    oos.defaultWriteObject();
    oos.writeUTF(zipArchive.getName());
}

From source file:com.flowpowered.api.geo.discrete.Point.java

private void writeObject(java.io.ObjectOutputStream out) throws IOException {
    out.defaultWriteObject();
    out.writeUTF(world != null ? world.getName() : "null");
}

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

/**
 * Provides serialization support.//from  www .  ja  va  2s.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);
    SerialUtilities.writePaint(this.outlinePaint, stream);
    SerialUtilities.writeStroke(this.outlineStroke, stream);
}

From source file:com.cyberway.issue.crawler.datamodel.RobotsExclusionPolicy.java

/** If object is DENYALL or ALLOWALL, only the object identity and type
 * is written in the serialization stream.
 *
 * @param stream the serialization stream.
 * @throws IOException //  w ww .j  a v  a2  s.  c  o  m
 */
private void writeObject(ObjectOutputStream stream) throws IOException {
    stream.writeInt(type);
    if (type == NORMAL_TYPE) {
        stream.defaultWriteObject();
    }
}

From source file:org.gatein.api.site.SiteImpl.java

private void writeObject(ObjectOutputStream out) throws IOException, ClassNotFoundException {
    out.defaultWriteObject();
    out.writeObject(portalConfig.build());
}