Code example for ObjectOutputStream

Methods: writeIntwriteObject

   private static final long serialVersionUID = 5156131434571541698L;
   private void writeObject(ObjectOutputStream oos) throws IOException 
      oos.writeObject( getWrappedData() );
      oos.writeInt( getRowIndex() );
   private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException 
      this.setWrappedData( ois.readObject() );
      this.setRowIndex( ois.readInt() );
   public ListDataModel() {} 
   public ListDataModel(List list)
Connect your IDE to all the code out there  Get Codota for Java