//-----------------------------------------------------------------------
 /**
  * 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);
 }
示例#2
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());
 }
示例#3
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());
     }
     }
 }
 /**
  * Write AffineTrasform object to the output steam.
  * @param stream - the output stream
  * @throws IOException - if there are I/O errors while writing to the output strem
  */
 private void writeObject(java.io.ObjectOutputStream stream)
 {
     // throws IOException {
     stream.defaultWriteObject();
 }
 //-----------------------------------------------------------------------
 /**
  * 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);
 }