- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 43 for ObjectOutputStream (0.51 sec)
-
android/guava-testlib/src/com/google/common/testing/Platform.java
@SuppressWarnings("unchecked") static <T> T reserialize(T object) { checkNotNull(object); ByteArrayOutputStream bytes = new ByteArrayOutputStream(); try { ObjectOutputStream out = new ObjectOutputStream(bytes); out.writeObject(object); ObjectInputStream in = new ObjectInputStream(new ByteArrayInputStream(bytes.toByteArray())); return (T) requireNonNull(in.readObject());
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 1.7K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/dict/DictionaryExpiredExceptionTest.java
DictionaryExpiredException original = new DictionaryExpiredException(); // Serialize ByteArrayOutputStream baos = new ByteArrayOutputStream(); ObjectOutputStream oos = new ObjectOutputStream(baos); oos.writeObject(original); oos.close(); // Deserialize ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray());
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 7.2K bytes - Viewed (0) -
guava/src/com/google/common/collect/Serialization.java
* a map serialized by {@link #writeMap(Map, ObjectOutputStream)}, the number of distinct elements * in a multiset serialized by {@link #writeMultiset(Multiset, ObjectOutputStream)}, or the number * of distinct keys in a multimap serialized by {@link #writeMultimap(Multimap, * ObjectOutputStream)}. */ static int readCount(ObjectInputStream stream) throws IOException {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 8.5K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/ReserializingTestCollectionGenerator.java
} @SuppressWarnings("unchecked") static <T> T reserialize(T object) { try { ByteArrayOutputStream bytes = new ByteArrayOutputStream(); ObjectOutputStream out = new ObjectOutputStream(bytes); out.writeObject(object); ObjectInputStream in = new ObjectInputStream(new ByteArrayInputStream(bytes.toByteArray())); return (T) in.readObject();
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue Jun 11 16:13:05 UTC 2024 - 2.4K bytes - Viewed (0) -
src/test/java/jcifs/spnego/SpnegoExceptionTest.java
// When byte[] bytes; try (ByteArrayOutputStream bout = new ByteArrayOutputStream(); ObjectOutputStream oout = new ObjectOutputStream(bout)) { oout.writeObject(original); oout.flush(); bytes = bout.toByteArray(); } SpnegoException restored;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.9K bytes - Viewed (0) -
src/main/java/org/codelibs/core/io/SerializeUtil.java
assertArgumentNotNull("obj", obj); try { final ByteArrayOutputStream baos = new ByteArrayOutputStream(BYTE_ARRAY_SIZE); final ObjectOutputStream oos = new ObjectOutputStream(baos); try { oos.writeObject(obj); } finally { oos.close(); } return baos.toByteArray();
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Thu Jul 31 08:16:49 UTC 2025 - 3.2K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Serialization.java
* a map serialized by {@link #writeMap(Map, ObjectOutputStream)}, the number of distinct elements * in a multiset serialized by {@link #writeMultiset(Multiset, ObjectOutputStream)}, or the number * of distinct keys in a multimap serialized by {@link #writeMultimap(Multimap, * ObjectOutputStream)}. */ static int readCount(ObjectInputStream stream) throws IOException {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 8.5K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/exception/SsoLoginExceptionTest.java
SsoLoginException originalException = new SsoLoginException(message, cause); // Serialize the exception ByteArrayOutputStream baos = new ByteArrayOutputStream(); ObjectOutputStream oos = new ObjectOutputStream(baos); oos.writeObject(originalException); oos.close(); // Deserialize the exception ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray());
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 9.7K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/EnumHashBiMap.java
} /** * @serialData the key class, number of entries, first key, first value, second key, second value, * and so on. */ @GwtIncompatible // java.io.ObjectOutputStream private void writeObject(ObjectOutputStream stream) throws IOException { stream.defaultWriteObject(); stream.writeObject(keyTypeOrObjectUnderJ2cl); Serialization.writeMap(this, stream); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 5.2K bytes - Viewed (0) -
guava/src/com/google/common/collect/EnumMultiset.java
} } } @Override public Iterator<E> iterator() { return Multisets.iteratorImpl(this); } @GwtIncompatible // java.io.ObjectOutputStream private void writeObject(ObjectOutputStream stream) throws IOException { stream.defaultWriteObject(); stream.writeObject(type); Serialization.writeMultiset(this, stream); } /**
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 9.3K bytes - Viewed (0)