Example usage for java.io ObjectOutputStream writeInt

List of usage examples for java.io ObjectOutputStream writeInt

Introduction

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

Prototype

public void writeInt(int val) throws IOException 

Source Link

Document

Writes a 32 bit int.

Usage

From source file:org.protempa.proposition.ProviderBasedLocalUniqueId.java

private void writeObject(ObjectOutputStream s) throws IOException {
    s.writeObject(this.id);
    s.writeInt(this.numericalId);
}

From source file:org.protempa.proposition.value.ValueList.java

private void writeObject(ObjectOutputStream s) throws IOException {
    s.writeInt(size());
    for (Object val : this) {
        s.writeObject(val);
    }//from w  w w  .j a  va 2s. c  om
}

From source file:captureplugin.drivers.defaultdriver.ParamEntry.java

/**
 * Save data to Stream//from  w  w  w .  ja v a 2  s . c  o  m
 * @param out save to this stream
 * @throws IOException during save operation
 */
public void writeData(ObjectOutputStream out) throws IOException {
    out.writeInt(2);
    out.writeObject(mName);
    out.writeObject(mParam);
    out.writeBoolean(mEnabled);
}

From source file:com.hp.autonomy.hod.sso.HodAuthenticationPrincipal.java

private void writeObject(final ObjectOutputStream out) throws IOException {
    out.defaultWriteObject();/*from w  w w .jav  a  2 s. c  om*/

    out.writeInt(userMetadata.size());

    for (final Map.Entry<String, Serializable> entry : userMetadata.entrySet()) {
        out.writeObject(entry.getKey());
        out.writeObject(entry.getValue());
    }
}

From source file:org.spout.api.chat.style.ChatStyle.java

protected void writeObject(ObjectOutputStream oos) throws IOException {
    oos.writeInt(id);
}

From source file:org.apache.openjpa.lib.util.ReferenceHashMap.java

protected void doWriteObject(ObjectOutputStream out) throws IOException {
    out.writeInt(_maxSize);
    super.doWriteObject(out);
}

From source file:org.protempa.proposition.value.OrdinalValue.java

private void writeObject(ObjectOutputStream s) throws IOException {
    s.writeObject(this.val);
    s.writeInt(this.index);
}

From source file:org.protempa.backend.dsb.relationaldb.SQLGenLocalUniqueId.java

private void writeObject(ObjectOutputStream s) throws IOException {
    s.writeObject(this.entitySpecName);
    s.writeInt(this.dbIds.length);
    for (String dbId : this.dbIds) {
        s.writeObject(dbId);// ww  w  . j a  v a  2  s  . co m
    }
}

From source file:tvbrowser.ui.filter.dlgs.FilterTreeModel.java

/**
 * Saves the data of this tree into the given stream.
 *
 * @param out The stream to write the data to.
 * @throws IOException Thrown if something went wrong
 *///  w w w  .  jav  a 2  s  .c  o m
public void storeData(ObjectOutputStream out) throws IOException {
    out.writeInt(1);
    ((FilterNode) getRoot()).store(out);
}

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

private void writeObject(java.io.ObjectOutputStream out) throws IOException {
    int paramsCount = parameters == null ? 0 : parameters.size();
    out.writeInt(paramsCount);
    if (parameters != null) {
        for (Map.Entry<String, Object> entry : parameters.entrySet()) {
            out.writeObject(entry.getKey());
            out.writeObject(entry.getValue());
        }/*  www . j a  v  a  2  s  .  c  o  m*/
    }

    out.writeInt(size);
    out.writeInt(fieldNames.length);
    for (int i = 0; i < fieldNames.length; i++) {
        out.writeObject(fieldNames[i]);
        out.writeObject(values[i]);
    }
}