Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 65 for ObjectOutputStream (0.21 sec)

  1. android/guava/src/com/google/common/util/concurrent/AtomicDouble.java

        return get();
      }
    
      /**
       * Saves the state to a stream (that is, serializes it).
       *
       * @serialData The current value is emitted (a {@code double}).
       */
      private void writeObject(java.io.ObjectOutputStream s) throws java.io.IOException {
        s.defaultWriteObject();
    
        s.writeDouble(get());
      }
    
      /** Reconstitutes the instance from a stream (that is, deserializes it). */
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Feb 28 21:00:54 GMT 2022
    - 7.2K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/ImmutableMapTest.java

        Set<Integer> keySet = map.keySet();
        Collection<Integer> values = map.values();
    
        ByteArrayOutputStream bytes = new ByteArrayOutputStream();
        ObjectOutputStream oos = new ObjectOutputStream(bytes);
        oos.writeObject(map);
        oos.flush();
    
        int mapSize = bytes.size();
        oos.writeObject(keySet);
        oos.writeObject(values);
        oos.close();
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Apr 30 14:39:16 GMT 2024
    - 37.3K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

        }
      }
    
      @SuppressWarnings("unchecked")
      <T> T serialClone(T o) {
        try {
          ByteArrayOutputStream bos = new ByteArrayOutputStream();
          ObjectOutputStream oos = new ObjectOutputStream(bos);
          oos.writeObject(o);
          oos.flush();
          oos.close();
          ObjectInputStream ois = new ObjectInputStream(new ByteArrayInputStream(bos.toByteArray()));
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 37.7K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/TreeMultiset.java

       *     second element, its count, and so on
       */
      @J2ktIncompatible
      @GwtIncompatible // java.io.ObjectOutputStream
      private void writeObject(ObjectOutputStream stream) throws IOException {
        stream.defaultWriteObject();
        stream.writeObject(elementSet().comparator());
        Serialization.writeMultiset(this, stream);
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 34.2K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/HashBiMap.java

        }
      }
    
      /**
       * @serialData the number of entries, first key, first value, second key, second value, and so on.
       */
      @GwtIncompatible // java.io.ObjectOutputStream
      @J2ktIncompatible
      private void writeObject(ObjectOutputStream stream) throws IOException {
        stream.defaultWriteObject();
        Serialization.writeMap(this, stream);
      }
    
      @GwtIncompatible // java.io.ObjectInputStream
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 06 16:06:58 GMT 2023
    - 36.4K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/SetsTest.java

      private static byte[] serializeWithBackReference(Object original, int handleOffset)
          throws IOException {
        ByteArrayOutputStream bos = new ByteArrayOutputStream();
        ObjectOutputStream out = new ObjectOutputStream(bos);
    
        out.writeObject(original);
    
        byte[] handle = toByteArray(baseWireHandle + handleOffset);
        byte[] ref = prepended(TC_REFERENCE, handle);
        bos.write(ref);
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 47.9K bytes
    - Viewed (1)
  7. android/guava/src/com/google/common/collect/ConcurrentHashMultiset.java

    import com.google.errorprone.annotations.CanIgnoreReturnValue;
    import com.google.j2objc.annotations.WeakOuter;
    import java.io.IOException;
    import java.io.ObjectInputStream;
    import java.io.ObjectOutputStream;
    import java.io.Serializable;
    import java.util.Collection;
    import java.util.Iterator;
    import java.util.List;
    import java.util.Map;
    import java.util.Set;
    import java.util.concurrent.ConcurrentHashMap;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 20.9K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

        }
      }
    
      @SuppressWarnings("unchecked")
      <T> T serialClone(T o) {
        try {
          ByteArrayOutputStream bos = new ByteArrayOutputStream();
          ObjectOutputStream oos = new ObjectOutputStream(bos);
          oos.writeObject(o);
          oos.flush();
          oos.close();
          ObjectInputStream ois = new ObjectInputStream(new ByteArrayInputStream(bos.toByteArray()));
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 37.2K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/SetsTest.java

      private static byte[] serializeWithBackReference(Object original, int handleOffset)
          throws IOException {
        ByteArrayOutputStream bos = new ByteArrayOutputStream();
        ObjectOutputStream out = new ObjectOutputStream(bos);
    
        out.writeObject(original);
    
        byte[] handle = toByteArray(baseWireHandle + handleOffset);
        byte[] ref = prepended(TC_REFERENCE, handle);
        bos.write(ref);
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 49.3K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/CompactHashMap.java

    import com.google.errorprone.annotations.concurrent.LazyInit;
    import com.google.j2objc.annotations.WeakOuter;
    import java.io.IOException;
    import java.io.InvalidObjectException;
    import java.io.ObjectInputStream;
    import java.io.ObjectOutputStream;
    import java.io.Serializable;
    import java.util.AbstractMap;
    import java.util.Arrays;
    import java.util.Collection;
    import java.util.ConcurrentModificationException;
    import java.util.Iterator;
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Jun 26 21:02:13 GMT 2023
    - 39.8K bytes
    - Viewed (0)
Back to top