List of usage examples for java.io ObjectOutputStream writeInt
public void writeInt(int val) throws IOException
From source file:CharArrayList.java
private void writeObject(ObjectOutputStream out) throws IOException { out.defaultWriteObject();//from ww w.j ava2s . c o m out.writeInt(array.length); for (int i = 0; i < size; i++) { out.writeChar(array[i]); } }
From source file:ShortArrayList.java
private void writeObject(ObjectOutputStream out) throws IOException { out.defaultWriteObject();/*from www . j a va 2s .c o m*/ out.writeInt(array.length); for (int i = 0; i < size; i++) { out.writeShort(array[i]); } }
From source file:FloatArrayList.java
private void writeObject(ObjectOutputStream out) throws IOException { out.defaultWriteObject();/*from ww w. ja va2 s .c o m*/ out.writeInt(array.length); for (int i = 0; i < size; i++) { out.writeFloat(array[i]); } }
From source file:ByteArrayList.java
private void writeObject(ObjectOutputStream out) throws IOException { out.defaultWriteObject();/*from ww w . ja va 2 s .c o m*/ out.writeInt(array.length); for (int i = 0; i < size; i++) { out.writeByte(array[i]); } }
From source file:LongArrayList.java
private void writeObject(ObjectOutputStream out) throws IOException { out.defaultWriteObject();//from ww w .ja va 2s . c o m out.writeInt(array.length); for (int i = 0; i < size; i++) { out.writeLong(array[i]); } }
From source file:IntArrayList.java
private void writeObject(ObjectOutputStream out) throws IOException { out.defaultWriteObject();// ww w . j ava2 s .c om out.writeInt(array.length); for (int i = 0; i < size; i++) { out.writeInt(array[i]); } }
From source file:org.pentaho.reporting.libraries.designtime.swing.SerializedObjectContainer.java
private void writeObject(final ObjectOutputStream stream) throws IOException { stream.defaultWriteObject();//from ww w. j av a2 s . c om final int count = data.length; stream.writeObject(data.getClass().getComponentType()); stream.writeInt(count); for (int i = 0; i < count; i++) { final Object object = data[i]; if (object != null && object instanceof Serializable) { stream.writeInt(i); stream.writeObject(object); } else { stream.writeInt(-1); } } }
From source file:com.ojcoleman.ahni.util.DoubleVector.java
private void writeObject(ObjectOutputStream out) throws IOException { out.defaultWriteObject();//ww w . jav a2 s.c o m out.writeInt(_data.length); for (int i = 0; i < _size; i++) { out.writeDouble(_data[i]); } }
From source file:cn.caimatou.canting.utils.http.asynchttp.SerializableCookie.java
private void writeObject(ObjectOutputStream out) throws IOException { out.writeObject(cookie.getName());/*from ww w . j a v a 2s.co m*/ 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.FastCacheMap.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.serdeUtils); stream.writeInt(this.bloomFilterSize); stream.writeObject(this.bloomFilter); this.db.close(); }