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:org.nuclos.common.collect.collectable.searchcondition.CollectableComparisonWithOtherField.java

private void writeObject(ObjectOutputStream oos) throws IOException {
    oos.defaultWriteObject();
    // CollectableEntityField generally is not serializable, but DefaultCollectableEntityField is:
    oos.writeObject(new DefaultCollectableEntityField(clctefOther, clctefOther.getEntityName()));
}

From source file:com.gsma.mobileconnect.discovery.DiscoveryResponse.java

private void writeObject(ObjectOutputStream out) throws IOException {
    out.defaultWriteObject();
    if (responseData == null) {
        out.writeBoolean(false);/*from  w ww . ja v  a  2 s.c  o  m*/
    } else {
        out.writeBoolean(true);
        new ObjectMapper().configure(JsonGenerator.Feature.AUTO_CLOSE_TARGET, false).writeValue(out,
                responseData);
    }
}

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

/**
 * Write the map out using a custom routine.
 *///from  w  ww  . j  a va2 s .  co m
private void writeObject(ObjectOutputStream out) throws IOException {
    out.defaultWriteObject();
    doWriteObject(out);
}

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

private void writeObject(ObjectOutputStream out) throws IOException {
    out.defaultWriteObject();
    writeFilter(readFilter, out);
}

From source file:com.dataartisans.flink.dataflow.translation.wrappers.SinkOutputFormat.java

private void writeObject(ObjectOutputStream out) throws IOException, ClassNotFoundException {
    out.defaultWriteObject();
    ObjectMapper mapper = new ObjectMapper();
    mapper.writeValue(out, pipelineOptions);
}

From source file:SerializableEnumeration.java

private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
    // the only thing to write is the index field
    out.defaultWriteObject();
}

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

private void writeObject(ObjectOutputStream oos) throws IOException {
    oos.defaultWriteObject();
    // CollectableEntityField generally is not serializable, but DefaultCollectableEntityField is:
    oos.writeObject(new DefaultCollectableEntityField(clctefReferencing, clctefReferencing.getEntityName()));
}

From source file:it.unibo.alchemist.language.protelis.MethodCall.java

private void writeObject(final ObjectOutputStream out) throws IOException {
    out.defaultWriteObject();
    out.writeObject(method.getDeclaringClass());
    out.writeUTF(method.getName());/*from  ww  w  . j  a  v  a  2s .  c  o  m*/
    out.writeObject(method.getParameterTypes());
}

From source file:org.mitre.openid.connect.model.OIDCAuthenticationToken.java

private void writeObject(ObjectOutputStream out) throws IOException {
    out.defaultWriteObject();
    if (idToken == null) {
        out.writeObject(null);/*from  www.  jav  a 2 s  .c  o m*/
    } else {
        out.writeObject(idToken.serialize());
    }
}

From source file:org.hibernate.ejb.metamodel.AbstractAttribute.java

/**
 * Used by JDK serialization.../*from   w w w  .  j  av  a  2 s.  c o m*/
 * 
 * @param oos
 *            The output stream to which we are being written...
 * @throws IOException
 *             Indicates a general IO stream exception
 */
protected void writeObject(ObjectOutputStream oos) throws IOException {
    oos.defaultWriteObject();
    oos.writeObject(getJavaMember().getDeclaringClass().getName());
    oos.writeObject(getJavaMember().getName());
    // should only ever be a field or the getter-method...
    oos.writeObject(Method.class.isInstance(getJavaMember()) ? "method" : "field");
}