List of usage examples for java.io ObjectOutputStream defaultWriteObject
public void defaultWriteObject() throws IOException
From source file:jopt.csp.util.SortableIntList.java
private void writeObject(ObjectOutputStream out) throws IOException { out.defaultWriteObject(); out.writeInt(data.length);/*from w w w . j av a 2 s . c o m*/ for (int i = 0; i < size; i++) { out.writeInt(data[i]); } }
From source file:BooleanArrayList.java
private void writeObject(ObjectOutputStream out) throws IOException { out.defaultWriteObject(); out.writeInt(array.length);/*from w ww. j a v a 2s . c o m*/ for (int i = 0; i < size; i++) { out.writeBoolean(array[i]); } }
From source file:DoubleArrayList.java
private void writeObject(ObjectOutputStream out) throws IOException { out.defaultWriteObject(); out.writeInt(array.length);/*w w w .j ava 2 s . c o m*/ for (int i = 0; i < size; i++) { out.writeDouble(array[i]); } }
From source file:CharArrayList.java
private void writeObject(ObjectOutputStream out) throws IOException { out.defaultWriteObject(); out.writeInt(array.length);/*from www .j a v a 2s . com*/ 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(); out.writeInt(array.length);/*w ww . ja v a 2 s .c o m*/ 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(); out.writeInt(array.length);//from w w w. j a v a 2 s. c o m 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(); out.writeInt(array.length);/* ww w .jav a2 s.co m*/ 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(); out.writeInt(array.length);/*from w w w .j ava 2s . c om*/ 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(); out.writeInt(array.length);/*from w ww . j ava2s .co m*/ for (int i = 0; i < size; i++) { out.writeInt(array[i]); } }
From source file:org.jfree.data.general.AbstractDataset.java
/** * Handles serialization.//from w ww. j av a2s . co m * * @param stream the output stream. * * @throws IOException if there is an I/O problem. */ private void writeObject(ObjectOutputStream stream) throws IOException { stream.defaultWriteObject(); }