List of usage examples for java.io ObjectOutputStream writeInt
public void writeInt(int val) throws IOException
From source file:net.sf.nmedit.jpatch.ModuleDescriptions.java
public void writeCache(ObjectOutputStream out) throws IOException { // signals/*from ww w.ja v a 2 s .c o m*/ out.writeObject(signalTypes); // types out.writeInt(types.size()); for (Entry<String, PTypes<PType>> e : types.entrySet()) { out.writeObject(e.getKey()); out.writeObject(e.getValue()); } // modules out.writeInt(moduleMap.size()); for (PModuleDescriptor m : moduleMap.values()) { out.writeObject(m); } }
From source file:mitm.application.djigzo.james.Certificates.java
private void writeObject(ObjectOutputStream out) throws IOException { try {// w w w . j a va 2s . co m out.writeLong(serialVersionUID); /* * Write the number of certificates so we know how many we have to read when deserializing. */ out.writeInt(certificates.size()); for (X509Certificate certificate : certificates) { byte[] encoded = certificate.getEncoded(); /* * write the size of the encoded certificate so we can restore it */ out.writeInt(encoded.length); out.write(certificate.getEncoded()); } } catch (CertificateEncodingException e) { throw new IOException(e); } }
From source file:org.largecollections.LargeCacheMap.java
private void writeObject(java.io.ObjectOutputStream stream) throws IOException { stream.writeObject(this.folder); stream.writeObject(this.name); stream.writeInt(this.cacheSize); stream.writeObject(this.dbComparatorCls); stream.writeInt(this.size); stream.writeLong(this.longSize); this.db.close(); }
From source file:com.blazeroni.reddit.http.SerializableCookie.java
private void writeObject(ObjectOutputStream out) throws IOException { out.writeObject(this.cookie.getName()); out.writeObject(this.cookie.getValue()); out.writeObject(this.cookie.getComment()); out.writeObject(this.cookie.getDomain()); out.writeObject(this.cookie.getExpiryDate()); out.writeObject(this.cookie.getPath()); out.writeInt(this.cookie.getVersion()); out.writeBoolean(this.cookie.isSecure()); }
From source file:com.ab.http.SerializableCookie.java
/** * Write object.//from ww w . ja v a 2 s . c o m * * @param out the out * @throws IOException Signals that an I/O exception has occurred. */ private void writeObject(ObjectOutputStream out) throws IOException { out.writeObject(cookie.getName()); out.writeObject(cookie.getValue()); out.writeObject(cookie.getComment()); out.writeObject(cookie.getDomain()); out.writeObject(cookie.getExpiryDate()); out.writeObject(cookie.getPath()); out.writeInt(cookie.getVersion()); out.writeBoolean(cookie.isSecure()); }
From source file:org.largecollections.CacheMap.java
private void writeObject(java.io.ObjectOutputStream stream) throws IOException { stream.writeObject(this.folder); stream.writeObject(this.name); stream.writeInt(this.cacheSize); stream.writeInt(this.size); stream.writeObject(this.serdeUtils); stream.writeInt(this.bloomFilterSize); stream.writeObject(this.bloomFilter); this.db.close(); }
From source file:org.largecollections.FastIntIntCacheMap.java
private void writeObject(java.io.ObjectOutputStream stream) throws IOException { stream.writeObject(this.folder); stream.writeObject(this.name); stream.writeInt(this.cacheSize); stream.writeInt(this.size); stream.writeInt(this.bloomFilterSize); stream.writeObject(this.bloomFilter); this.db.close(); }
From source file:org.protempa.CompoundLowLevelAbstractionDefinition.java
private void writeObject(ObjectOutputStream s) throws IOException { s.defaultWriteObject();/* ww w. j a v a2s . c om*/ s.writeInt(this.valueClassifications.size()); for (ValueClassification vc : this.valueClassifications) { s.writeObject(vc); } }
From source file:org.apache.flink.streaming.api.state.NullableCircularBuffer.java
/** * Write the buffer out using a custom routine. * //from ww w .ja v a 2 s . c o m * @param out * the output stream * @throws IOException */ private void writeObject(ObjectOutputStream out) throws IOException { out.defaultWriteObject(); out.writeInt(size()); for (Iterator it = iterator(); it.hasNext();) { out.writeObject(it.next()); } }
From source file:net.vleu.par.android.rpc.SerializableCookie.java
private void writeObject(final ObjectOutputStream out) throws IOException { out.writeObject(this.cookie.getName()); out.writeObject(this.cookie.getValue()); out.writeObject(this.cookie.getComment()); out.writeObject(this.cookie.getDomain()); out.writeObject(this.cookie.getExpiryDate()); out.writeObject(this.cookie.getPath()); out.writeInt(this.cookie.getVersion()); out.writeBoolean(this.cookie.isSecure()); }