Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 28 of 28 for ObjectOutputStream (0.36 sec)

  1. 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)
  2. 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)
  3. android/guava/src/com/google/common/collect/Synchronized.java

        // they don't contain any non-transient member variables, while the
        // following writeObject() handles the SynchronizedObject members.
    
        @GwtIncompatible // java.io.ObjectOutputStream
        @J2ktIncompatible
        private void writeObject(ObjectOutputStream stream) throws IOException {
          synchronized (mutex) {
            stream.defaultWriteObject();
          }
        }
    
        @GwtIncompatible // not needed in emulated source
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 53.4K bytes
    - Viewed (0)
  4. 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)
  5. android/guava/src/com/google/common/collect/MapMakerInternalMap.java

    import com.google.j2objc.annotations.Weak;
    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.lang.ref.Reference;
    import java.lang.ref.ReferenceQueue;
    import java.lang.ref.WeakReference;
    import java.util.AbstractCollection;
    import java.util.AbstractMap;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 91.9K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/ImmutableMap.java

        // This object retains references to collections returned by keySet() and value(). This saves
        // bytes when the both the map and its keySet or value collection are written to the same
        // instance of ObjectOutputStream.
    
        // TODO(b/160980469): remove support for the old serialization format after some time
        private static final boolean USE_LEGACY_SERIALIZATION = true;
    
        private final Object keys;
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 44.1K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/ImmutableMap.java

        // This object retains references to collections returned by keySet() and value(). This saves
        // bytes when the both the map and its keySet or value collection are written to the same
        // instance of ObjectOutputStream.
    
        // TODO(b/160980469): remove support for the old serialization format after some time
        private static final boolean USE_LEGACY_SERIALIZATION = true;
    
        private final Object keys;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 41.7K bytes
    - Viewed (0)
  8. maven-api-impl/src/test/remote-repo/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar

    private void addEntry(Object, Object); private void removeEntry(FastMap$EntryImpl); private void initialize(int); private void readObject(java.io.ObjectInputStream) throws java.io.IOException, ClassNotFoundExcepti; private void writeObject(java.io.ObjectOutputStream) throws java.io.IOException; } org/codehaus/plexus/util/FileUtils.class package org.codehaus.plexus.util; public synchronized class FileUtils { public static final int ONE_KB = 1024; public static final int ONE_MB = 1048576; public static final...
    Archive
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu May 02 15:10:38 GMT 2024
    - 164.6K bytes
    - Viewed (0)
Back to top