- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 65 for ObjectInputStream (0.09 sec)
-
android/guava-testlib/src/com/google/common/testing/Platform.java
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()); } catch (IOException | ClassNotFoundException e) { throw new RuntimeException(e); } }
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
oos.writeObject(original); oos.close(); // Deserialize ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray()); ObjectInputStream ois = new ObjectInputStream(bais); DictionaryExpiredException deserialized = (DictionaryExpiredException) ois.readObject(); ois.close(); // Verify assertNotNull(deserialized);
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
*/ package com.google.common.collect; import com.google.common.annotations.GwtIncompatible; import com.google.common.annotations.J2ktIncompatible; import java.io.IOException; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; import java.lang.reflect.Field; import java.util.Collection; import java.util.Map; import org.jspecify.annotations.Nullable; /**
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/main/java/org/codelibs/core/io/SerializeUtil.java
assertArgumentNotEmpty("bytes", bytes); try { final ByteArrayInputStream bais = new ByteArrayInputStream(bytes); final ObjectInputStream ois = new ObjectInputStream(bais); try { return ois.readObject(); } finally { CloseableUtil.close(ois); } } catch (final IOException ex) {
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Thu Jul 31 08:16:49 UTC 2025 - 3.2K bytes - Viewed (0) -
src/test/java/jcifs/spnego/SpnegoExceptionTest.java
oout.flush(); bytes = bout.toByteArray(); } SpnegoException restored; try (ByteArrayInputStream bin = new ByteArrayInputStream(bytes); ObjectInputStream oin = new ObjectInputStream(bin)) { restored = (SpnegoException) oin.readObject(); } // Then assertNotNull(restored); assertEquals("serialize me", restored.getMessage());
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/test/java/org/codelibs/fess/exception/SsoLoginExceptionTest.java
oos.writeObject(originalException); oos.close(); // Deserialize the exception ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray()); ObjectInputStream ois = new ObjectInputStream(bais); SsoLoginException deserializedException = (SsoLoginException) ois.readObject(); ois.close(); // Verify the deserialized exception
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 9.7K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbOperationExceptionTest.java
oos.close(); // And deserialize java.io.ByteArrayInputStream bais = new java.io.ByteArrayInputStream(baos.toByteArray()); java.io.ObjectInputStream ois = new java.io.ObjectInputStream(bais); SmbOperationException deserialized = (SmbOperationException) ois.readObject(); ois.close(); // Then assertNotNull(deserialized);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 16.1K bytes - Viewed (0) -
guava/src/com/google/common/collect/EnumMultiset.java
* element, its count, the second element, its count, and so on */ @GwtIncompatible // java.io.ObjectInputStream private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException { stream.defaultReadObject(); @SuppressWarnings("unchecked") // reading data stored by writeObject
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 9.3K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Serialization.java
*/ package com.google.common.collect; import com.google.common.annotations.GwtIncompatible; import com.google.common.annotations.J2ktIncompatible; import java.io.IOException; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; import java.lang.reflect.Field; import java.util.Collection; import java.util.Map; import org.jspecify.annotations.Nullable; /**
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/main/java/jcifs/internal/smb2/persistent/PersistentHandleManager.java
return; } try (DirectoryStream<Path> stream = Files.newDirectoryStream(stateDirectory, "*.handle")) { for (Path handleFile : stream) { try (ObjectInputStream ois = new ObjectInputStream(Files.newInputStream(handleFile))) { HandleInfo info = (HandleInfo) ois.readObject(); // Only load if not expired if (!info.isExpired()) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 24 00:49:49 UTC 2025 - 13K bytes - Viewed (0)