- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 117 for readObject (0.73 sec)
-
guava-testlib/src/com/google/common/collect/testing/ReserializingTestCollectionGenerator.java
ObjectOutputStream out = new ObjectOutputStream(bytes); out.writeObject(object); ObjectInputStream in = new ObjectInputStream(new ByteArrayInputStream(bytes.toByteArray())); return (T) in.readObject(); } catch (IOException | ClassNotFoundException e) { throw new AssertionError(e); } } @Override public SampleElements<E> samples() { return delegate.samples(); }
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue Jun 11 16:13:05 UTC 2024 - 2.4K bytes - Viewed (0) -
guava/src/com/google/common/collect/ImmutableAsList.java
Object readResolve() { return collection.asList(); } private static final long serialVersionUID = 0; } @GwtIncompatible // serialization @J2ktIncompatible private void readObject(ObjectInputStream stream) throws InvalidObjectException { throw new InvalidObjectException("Use SerializedForm"); } @GwtIncompatible // serialization @J2ktIncompatible @Override
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Mar 06 16:06:58 UTC 2023 - 2.6K bytes - Viewed (0) -
maven-model/src/test/java/org/apache/maven/model/SerializationTest.java
} Build build2; ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray()); try (ObjectInputStream ois = new ObjectInputStream(bais)) { build2 = (Build) ois.readObject(); } assertNotNull(build2); } @Test void testModelPropertiesAndListSerialization() throws Exception { Model model;
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Fri Mar 01 16:30:18 UTC 2024 - 2.5K bytes - Viewed (0) -
android/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();
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Apr 01 16:15:01 UTC 2024 - 9K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/AtomicDoubleArray.java
public class AtomicDoubleArray implements java.io.Serializable { private static final long serialVersionUID = 0L; // Making this non-final is the lesser evil according to Effective // Java 2nd Edition Item 76: Write readObject methods defensively. private transient AtomicLongArray longs; /** * Creates a new {@code AtomicDoubleArray} of the given length, with all elements initially zero. * * @param length the length of the array
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue Apr 04 09:45:04 UTC 2023 - 8K bytes - Viewed (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();
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Apr 01 16:15:01 UTC 2024 - 9.3K bytes - Viewed (0) -
src/main/java/jcifs/pac/kerberos/KerberosToken.java
} try ( ASN1InputStream stream = new ASN1InputStream(content) ) { ASN1ObjectIdentifier kerberosOid = (ASN1ObjectIdentifier) stream.readObject(); if ( !kerberosOid.getId().equals(KerberosConstants.KERBEROS_OID) ) throw new PACDecodingException("Not a kerberos token");
Registered: Wed Jun 12 15:45:55 UTC 2024 - Last Modified: Mon Oct 02 12:02:06 UTC 2023 - 3K bytes - Viewed (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(emulated = true) @ElementTypesAreNonnullByDefault
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Mar 06 16:06:58 UTC 2023 - 8.2K bytes - Viewed (0) -
guava/src/com/google/common/collect/EmptyContiguousSet.java
@J2ktIncompatible @Override Object writeReplace() { return new SerializedForm<>(domain); } @GwtIncompatible // serialization @J2ktIncompatible private void readObject(ObjectInputStream stream) throws InvalidObjectException { throw new InvalidObjectException("Use SerializedForm"); } @GwtIncompatible // NavigableSet @Override
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue Mar 28 18:35:00 UTC 2023 - 4.2K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/EnumHashBiMap.java
@SuppressWarnings("unchecked") // reading field populated by writeObject @GwtIncompatible // java.io.ObjectInputStream private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException { stream.defaultReadObject(); keyTypeOrObjectUnderJ2cl = (Class<K>) requireNonNull(stream.readObject()); /* * TODO: cpovirk - Pre-size the HashMap based on the number of enum values? (But *not* based on
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Thu Aug 24 01:40:03 UTC 2023 - 5.4K bytes - Viewed (0)