Example #1
0
        private void writeObject(java.io.ObjectOutputStream stream)
        {//throws IOException {
            stream.defaultWriteObject();

            stream.writeObject(getOnlySerializable(systemList));
            stream.writeObject(getOnlySerializable(userList));
        }
Example #2
0
 private void writeObject(java.io.ObjectOutputStream stream)
 {//throws IOException {
     lock (mutex)
     {
         stream.defaultWriteObject();
     }
 }
        //-----------------------------------------------------------------------

        /**
         * Write the buffer out using a custom routine.
         *
         * @param out  the output stream
         * @throws IOException
         */
        private void writeObject(java.io.ObjectOutputStream outJ)
        {//throws IOException {
            outJ.defaultWriteObject();
            outJ.writeInt(size());
            for (java.util.Iterator <Object> it = iterator(); it.hasNext();)
            {
                outJ.writeObject(it.next());
            }
        }
Example #4
0
 private void writeObject(java.io.ObjectOutputStream oos)//throws IOException {
 {
     oos.defaultWriteObject();
     PropertyChangeListener[] gListeners = globalListeners
                                           .toArray(new PropertyChangeListener[0]);
     for (int i = 0; i < gListeners.Length; i++)
     {
         if (gListeners[i] is java.io.Serializable)
         {
             oos.writeObject(gListeners[i]);
         }
     }
     // Denotes end of list
     oos.writeObject(null);
 }
Example #5
0
        private void writeObject(java.io.ObjectOutputStream stream)
        {//throws IOException {
            stream.defaultWriteObject();
            stream.writeObject(backingMap.comparator());
            int size = backingMap.size();

            stream.writeInt(size);
            if (size > 0)
            {
                Iterator <E> it = backingMap.keySet().iterator();
                while (it.hasNext())
                {
                    stream.writeObject(it.next());
                }
            }
        }
Example #6
0
 /*
  * Customized serialization.
  */
 private void writeObject(java.io.ObjectOutputStream outJ)// throws IOException {
 {
     outJ.defaultWriteObject();
     outJ.writeByte(MAJOR);
     outJ.writeByte(MINOR);
     if (null == parameters)
     {
         outJ.writeInt(-1);
     }
     else
     {
         outJ.writeInt(parameters.Length);
         foreach (Object element in parameters)
         {
             outJ.writeObject(null == element ? null : element.toString());
         }
     }
 }
Example #7
0
        //-----------------------------------------------------------------------

        /**
         * Write the map out using a custom routine.
         *
         * @param out  the output stream
         * @throws IOException
         * @since Commons Collections 3.1
         */
        private void writeObject(java.io.ObjectOutputStream outJ)
        {// throws IOException {
            outJ.defaultWriteObject();
            outJ.writeObject(map);
        }
        //-----------------------------------------------------------------------

        /**
         * Write the bag out using a custom routine.
         */
        private void writeObject(java.io.ObjectOutputStream outJ)
        {//throws IOException {
            outJ.defaultWriteObject();
            outJ.writeObject(comparator());
            base.doWriteObject(outJ);
        }
Example #9
0
 /*
  * Writes the state of this object to the stream passed.
  *
  * @param out
  *            the stream to write the state to.
  * @throws IOException
  *             if the stream throws it during the write.
  * @serialData {@code int} - the length of this object. {@code char[]} - the
  *             buffer from this object, which may be larger than the length
  *             field.
  */
 private void writeObject(java.io.ObjectOutputStream outJ) // throws IOException {
 {
     outJ.defaultWriteObject();
     outJ.writeInt(length());
     outJ.writeObject(getValue());
 }
Example #10
0
        //-----------------------------------------------------------------------

        /**
         * Write the collection out using a custom routine.
         *
         * @param out  the output stream
         * @throws IOException
         */
        private void writeObject(java.io.ObjectOutputStream outJ)  //throws IOException {
        {
            outJ.defaultWriteObject();
            outJ.writeObject(collection);
        }