- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 26 for readObject (0.1 seconds)
-
android/guava-testlib/src/com/google/common/testing/Platform.java
ObjectOutputStream out = new ObjectOutputStream(bytes); out.writeObject(object); ObjectInputStream in = new ObjectInputStream(new ByteArrayInputStream(bytes.toByteArray())); return (T) requireNonNull(in.readObject()); } catch (IOException | ClassNotFoundException e) { throw new RuntimeException(e); } } private Platform() {}
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 1.7K bytes - Click Count (0) -
guava/src/com/google/common/collect/TreeMultimap.java
@SuppressWarnings("unchecked") // reading data stored by writeObject private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException { stream.defaultReadObject(); keyComparator = requireNonNull((Comparator<? super K>) stream.readObject()); valueComparator = requireNonNull((Comparator<? super V>) stream.readObject()); setMap(new TreeMap<K, Collection<V>>(keyComparator));Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 8.5K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/Serialization.java
for (int i = 0; i < size; i++) { @SuppressWarnings("unchecked") // reading data stored by writeMap K key = (K) stream.readObject(); @SuppressWarnings("unchecked") // reading data stored by writeMap V value = (V) stream.readObject(); map.put(key, value); } } /** * Stores the contents of a multiset in an output stream, as part of serialization. It does not
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Dec 09 15:58:48 GMT 2025 - 6.7K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/EnumBiMap.java
@GwtIncompatible // java.io.ObjectInputStream private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException { stream.defaultReadObject(); keyTypeOrObjectUnderJ2cl = (Class<K>) requireNonNull(stream.readObject()); valueTypeOrObjectUnderJ2cl = (Class<V>) requireNonNull(stream.readObject()); setDelegates(Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Sep 22 15:50:50 GMT 2025 - 6.2K bytes - Click Count (0) -
guava/src/com/google/common/collect/EnumMultiset.java
*/ @GwtIncompatible // java.io.ObjectInputStream private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException { stream.defaultReadObject(); @SuppressWarnings("unchecked") // reading data stored by writeObject Class<E> localType = (Class<E>) requireNonNull(stream.readObject()); type = localType; enumConstants = type.getEnumConstants();Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 9.3K bytes - Click Count (0) -
guava/src/com/google/common/collect/ImmutableEnumSet.java
} @Override @J2ktIncompatible // serialization Object writeReplace() { return new EnumSerializedForm<E>(delegate); } @J2ktIncompatible // serialization private void readObject(ObjectInputStream stream) throws InvalidObjectException { throw new InvalidObjectException("Use SerializedForm"); } /* * This class is used to serialize ImmutableEnumSet instances. */
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 4.5K bytes - Click Count (0) -
build-logic/documentation/src/main/groovy/gradlebuild/docs/model/SimpleClassMetaDataRepository.java
try { ObjectInputStream objInputStream = new ObjectInputStream(new BufferedInputStream(inputStream)); classes.clear(); classes.putAll((Map<String, T>) objInputStream.readObject()); } finally { inputStream.close(); } } catch (Exception e) { throw new GradleException(String.format("Could not load meta-data from %s.", repoFile), e);Created: Wed Dec 31 11:36:14 GMT 2025 - Last Modified: Wed May 21 06:20:45 GMT 2025 - 4K bytes - Click Count (0) -
guava/src/com/google/common/collect/ImmutableMapEntrySet.java
@GwtIncompatible @J2ktIncompatible @Override Object writeReplace() { return new EntrySetSerializedForm<>(map()); } @GwtIncompatible @J2ktIncompatible private void readObject(ObjectInputStream stream) throws InvalidObjectException { throw new InvalidObjectException("Use EntrySetSerializedForm"); } @GwtIncompatible @J2ktIncompatibleCreated: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Nov 17 22:50:48 GMT 2025 - 4.3K bytes - Click Count (0) -
guava/src/com/google/common/collect/LinkedHashMultiset.java
stream.defaultWriteObject(); Serialization.writeMultiset(this, stream); } @GwtIncompatible @J2ktIncompatible private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException { stream.defaultReadObject(); int distinctElements = stream.readInt(); setBackingMap(new LinkedHashMap<E, Count>());
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Fri Dec 05 23:15:58 GMT 2025 - 3.8K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/AbstractMapBasedMultiset.java
/** * Basic implementation of {@code Multiset<E>} backed by an instance of {@code * ObjectCountHashMap<E>}. * * <p>For serialization to work, the subclass must specify explicit {@code readObject} and {@code * writeObject} methods. * * @author Kevin Bourrillion */ @GwtCompatible abstract class AbstractMapBasedMultiset<E extends @Nullable Object> extends AbstractMultiset<E> implements Serializable {Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Fri Dec 05 23:15:58 GMT 2025 - 7.9K bytes - Click Count (0)