List of usage examples for java.io ObjectOutput writeInt
void writeInt(int v) throws IOException;
int
value, which is comprised of four bytes, to the output stream. From source file:xbird.util.collections.IndexedSet.java
public void writeExternal(ObjectOutput out) throws IOException { final int size = _list.size(); out.writeInt(size); if(size > 0) { for(int i = 0; i < size; i++) { E v = _list.get(i);// w w w . jav a 2s. c o m out.writeObject(v); } } }
From source file:com.conwet.silbops.model.AbstractMapping.java
@Override public void writeExternal(ObjectOutput output) throws IOException { output.writeInt(attributes.size()); for (Entry<Attribute, Value> entry : attributes.entrySet()) { attributeExt.writeExternal(output, entry.getKey()); valueExt.writeExternal(output, entry.getValue()); }// w w w . j a va2s. c o m }
From source file:gridool.dht.ops.AddOperation.java
public void writeExternal(ObjectOutput out) throws IOException { IOUtils.writeString(idxName, out);//w ww. j a v a 2 s . c o m final int size = keys.size(); out.writeInt(size); for (int i = 0; i < size; i++) { byte[] k = keys.get(i); byte[] v = values.get(i); IOUtils.writeBytes(k, out); IOUtils.writeBytes(v, out); } out.writeBoolean(async); }
From source file:org.ejbca.core.model.approval.approvalrequests.EditEndEntityApprovalRequest.java
public void writeExternal(ObjectOutput out) throws IOException { super.writeExternal(out); out.writeInt(LATEST_VERSION); out.writeObject(newuserdata);//from www.j a v a2 s .com out.writeBoolean(clearpwd); out.writeObject(orguserdata); }
From source file:com.conwet.silbops.model.Advertise.java
/** * @serialData writes the number of attributes and their content. */// ww w . j av a2 s . com @Override public void writeExternal(ObjectOutput output) throws IOException { output.writeInt(attributes.size()); for (Attribute attribute : attributes) { externalizer.writeExternal(output, attribute); } }
From source file:com.splicemachine.derby.stream.compaction.SparkCompactionFunction.java
@Override public void writeExternal(ObjectOutput out) throws IOException { byte[] hriBytes = hri.toByteArray(); super.writeExternal(out); out.writeLong(smallestReadPoint);//w w w. jav a2s. c o m out.writeInt(namespace.length); out.write(namespace); out.writeInt(tableName.length); out.write(tableName); out.writeInt(hriBytes.length); out.write(hriBytes); out.writeInt(storeColumn.length); out.write(storeColumn); }
From source file:edu.wustl.cab2b.admin.flex.DAGNode.java
/** * It serializes DAGNode for communication with flex client * /*ww w .j ava 2 s . c o m*/ * @param out * @throws IOException */ public void writeExternal(ObjectOutput out) throws IOException { out.writeUTF(nodeName); out.writeUTF(toolTip); out.writeInt((int) nodeId); out.writeUTF(operatorBetweenAttrAndAssociation); out.writeUTF(nodeType); out.writeObject(associationList); out.writeObject(operatorList); out.writeObject(dagpathList); out.writeUTF(errorMsg); out.writeInt(xCordinate); out.writeInt(yCordinate); out.writeInt((int) entityId); out.writeObject(attributesList); }
From source file:com.aol.advertising.qiao.util.cache.ValueWrapper.java
@Override public void writeExternal(ObjectOutput out) throws IOException { out.writeLong(this.insertionTime); out.writeLong(this.lastAccessTime); out.writeInt(this.timeout); out.writeByte(this.isModified); out.writeObject(value);/*from w w w.ja v a 2 s.c o m*/ }
From source file:net.openhft.chronicle.wire.benchmarks.Data.java
@Override public void writeExternal(ObjectOutput out) throws IOException { out.writeDouble(price);/*from www .j a va 2 s . c o m*/ out.writeLong(longInt); out.writeInt(smallInt); out.writeBoolean(flag); out.writeObject(side); out.writeObject(getText()); }
From source file:com.conwet.silbops.model.ContextFunction.java
@Override public void writeExternal(ObjectOutput output) throws IOException { output.writeInt(constraint.size()); for (Entry<Key, Value> entry : constraint.entrySet()) { output.writeObject(entry.getKey()); valueExt.writeExternal(output, entry.getValue()); }//from w ww . j a v a 2 s . c o m }