/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/io/ |
D | ObjectInputStreamTest.java | 74 private void readObject(ObjectInputStream ois) throws Exception { in readObject() argument 76 ObjectInputStream.GetField fields = ois.readFields(); in readObject() 124 ObjectInputStream ois; field in ObjectInputStreamTest 143 ois = new ObjectInputStream(sis); in test_ConstructorLjava_io_InputStream_IOException() 161 ObjectInputStreamWithReadDesc ois = new ObjectInputStreamWithReadDesc( in test_ClassDescriptor() local 163 Object obj = ois.readObject(); in test_ClassDescriptor() 164 ois.close(); in test_ClassDescriptor() 173 ois = new ObjectInputStream(sis); in test_available_IOException() 176 ois.available(); in test_available_IOException() 182 ois.close(); in test_available_IOException() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
D | SerializationStressTest.java | 87 protected transient ObjectInputStream ois; field in SerializationStressTest 234 ois = new ObjectInputStream(loadStream()); in reload() 237 return ois.readObject(); in reload() 239 ois.close(); in reload() 337 ois = new ObjectInputStream(loadStream()); in test_5_reset() 338 ois.close(); in test_5_reset() 354 ois = new ObjectInputStream(loadStream()); in test_6_write() 355 ois.readFully(buf); in test_6_write() 356 ois.close(); in test_6_write() 375 ois = new ObjectInputStream(loadStream()); in test_6a_write() [all …]
|
D | ObjectOutputStreamTest.java | 66 private void readObject(ObjectInputStream ois) throws IOException { in readObject() argument 69 ObjectInputStream.GetField fields = ois.readFields(); in readObject() 568 protected ObjectInputStream ois; field in ObjectOutputStreamTest 642 ois = new ObjectInputStream(new ByteArrayInputStream(bao.toByteArray())); in test_putFields() 643 sth = (SerializableTestHelper) (ois.readObject()); in test_putFields() 661 ois = new ObjectInputStream(new ByteArrayInputStream(bao.toByteArray())); in test_reset() 662 ois.close(); in test_reset() 707 ois = new ObjectInputStream(new ByteArrayInputStream(bao.toByteArray())); in test_useProtocolVersionI() 708 ExternalTest t2 = (ExternalTest) ois.readObject(); in test_useProtocolVersionI() 709 ois.close(); in test_useProtocolVersionI() [all …]
|
D | ObjectInputStream2Test.java | 52 ObjectInputStream ois = new ObjectInputStream( in test_readUnshared() local 54 ois.readUnshared(); in test_readUnshared() 55 ois.readObject(); in test_readUnshared() 56 ois.close(); in test_readUnshared() 76 ObjectInputStream ois = new ObjectInputStream(new ByteArrayInputStream( in test_readObject_Hierarchy() local 78 B b = (B) ois.readObject(); in test_readObject_Hierarchy() 79 ois.close(); in test_readObject_Hierarchy() 202 ObjectInputStream ois; in test_resolveClass_invalidClassName() local 209 ois = new TestObjectInputStream(bais); in test_resolveClass_invalidClassName() 212 ois.readObject(); in test_resolveClass_invalidClassName() [all …]
|
D | StreamCorruptedExceptionTest.java | 33 ObjectInputStream ois = new ObjectInputStream( in test_Constructor() local 37 ois.readObject(); in test_Constructor() 52 ObjectInputStream ois = new ObjectInputStream( in test_ConstructorLjava_lang_String() local 56 ois.readObject(); in test_ConstructorLjava_lang_String()
|
D | ObjectStreamFieldTest.java | 166 ObjectInputStream ois = new ObjectInputStream(bais); in test_getType_Deserialized() local 167 SerializableObject obj = (SerializableObject) ois.readObject(); in test_getType_Deserialized() 187 MockObjectInputStream ois = new MockObjectInputStream(bais); in test_getType_MockObjectInputStream() local 188 ois.readObject(); in test_getType_MockObjectInputStream() 190 ObjectStreamClass oc = ois.getObjectStreamClass(); in test_getType_MockObjectInputStream() 205 ObjectInputStream ois = new ObjectInputStream(bais); in test_isUnshared() local 206 SerializableObject2 newObj = (SerializableObject2) ois.readObject(); in test_isUnshared() 238 final MyObjectInputStream ois = new MyObjectInputStream(bais); in test_ObjectWithPrimitiveField() local 240 ois.readObject(); in test_ObjectWithPrimitiveField()
|
/libcore/luni/src/test/java/libcore/java/io/ |
D | OldObjectInputStreamGetFieldTest.java | 57 private ObjectInputStream ois = null; field in OldObjectInputStreamGetFieldTest 71 Support_GetPutFields object = (Support_GetPutFields) ois.readObject(); in test_get() 81 (Support_GetPutFieldsDefaulted) ois.readObject(); in test_get() 99 Support_GetPutFields object = (Support_GetPutFields) ois.readObject(); in test_defaultedLjava_lang_String() 113 (Support_GetPutFieldsDefaulted) ois.readObject(); in test_defaultedLjava_lang_String() 123 Support_GetPutFields object = (Support_GetPutFields) ois.readObject(); in test_getException() 239 Support_GetPutFields object = (Support_GetPutFields) ois.readObject(); in test_getObjectStreamClass() 245 if (ois != null) { in initOis() 246 ois.close(); in initOis() 248 ois = new ObjectInputStream( in initOis() [all …]
|
D | OldObjectOutputStreamTest.java | 50 private void readObject(ObjectInputStream ois) throws IOException { in readObject() argument 53 ObjectInputStream.GetField fields = ois.readFields(); in readObject() 136 protected ObjectInputStream ois; field in OldObjectOutputStreamTest 254 ois = new ObjectInputStream(new ByteArrayInputStream(bao.toByteArray())); in test_putFields() 255 sth = (SerializableTestHelper) (ois.readObject()); in test_putFields() 281 ois = new ObjectInputStream(new ByteArrayInputStream(sos.toByteArray())); in test_reset() 282 assertEquals("Test 2: Incorrect object read.", o, ois.readObject()); in test_reset() 283 assertEquals("Test 3: Incorrect object read.", o, ois.readObject()); in test_reset() 284 assertEquals("Test 4: Incorrect object read.", o, ois.readObject()); in test_reset() 285 ois.close(); in test_reset() [all …]
|
D | ObjectOutputStreamTest.java | 54 private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException { in readObject() argument 55 message = (String) ois.readObject(); in readObject() 106 try (ObjectInputStream ois = new ObjectInputStream(bais)) { in roundTrip() argument 107 read = (Serializable) ois.readObject(); in roundTrip()
|
/libcore/ojluni/src/main/java/java/security/cert/ |
D | CertificateRevokedException.java | 217 private void readObject(ObjectInputStream ois) in readObject() argument 221 ois.defaultReadObject(); in readObject() 228 int size = ois.readInt(); in readObject() 237 String oid = (String) ois.readObject(); in readObject() 238 boolean critical = ois.readBoolean(); in readObject() 239 int length = ois.readInt(); in readObject() 241 ois.readFully(extVal); in readObject()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
D | ParseExceptionTest.java | 55 ObjectInputStream ois = new ObjectInputStream(inputStream)) { in test_serialize() 57 Object object = ois.readObject(); in test_serialize()
|
/libcore/support/src/test/java/tests/util/ |
D | SerializationTester.java | 53 ObjectInputStream ois = new ObjectInputStream(bis); in getDeserilizedObject() local 54 Object outputObject = ois.readObject(); in getDeserilizedObject() 55 ois.close(); in getDeserilizedObject()
|
/libcore/ojluni/src/main/java/java/security/ |
D | CodeSigner.java | 168 private void readObject(ObjectInputStream ois) in readObject() argument 170 ois.defaultReadObject(); in readObject()
|
D | Timestamp.java | 158 private void readObject(ObjectInputStream ois) in readObject() argument 160 ois.defaultReadObject(); in readObject()
|
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/ |
D | SealedObjectTest.java | 77 ObjectInputStream ois = new ObjectInputStream(new ByteArrayInputStream( in testReadObject() local 80 SealedObject so_des = (SealedObject) ois.readObject(); in testReadObject() 187 ObjectInputStream ois = new ObjectInputStream(new ByteArrayInputStream(baos.toByteArray())); in testGetAlgorithmAfterSerialization() local 188 SealedObject readSo = (SealedObject) ois.readObject(); in testGetAlgorithmAfterSerialization() 189 ois.close(); in testGetAlgorithmAfterSerialization()
|
/libcore/support/src/test/java/tests/support/ |
D | Support_GetPutFieldsDefaulted.java | 117 private void readObject(ObjectInputStream ois) throws Exception { in readObject() argument 118 getField = ois.readFields(); in readObject()
|
D | Support_GetPutFields.java | 106 private void readObject(ObjectInputStream ois) throws Exception { in readObject() argument 107 getField = ois.readFields(); in readObject()
|
D | Support_GetPutFieldsDeprecated.java | 108 private void readObject(ObjectInputStream ois) throws Exception { in readObject() argument
|
/libcore/luni/src/main/java/libcore/reflect/ |
D | AnnotationMember.java | 318 ObjectInputStream ois = new ObjectInputStream(bis); in rethrowError() local 319 error = (Throwable)ois.readObject(); in rethrowError() 320 ois.close(); in rethrowError()
|
/libcore/support/src/test/java/org/apache/harmony/testframework/serialization/ |
D | SerializationTest.java | 162 ObjectInputStream ois = new ObjectInputStream(is); in getObjectFromStream() local 163 Object result = ois.readObject(); in getObjectFromStream() 164 ois.close(); in getObjectFromStream()
|
/libcore/ojluni/src/test/java/time/tck/java/time/serial/ |
D | TCKZoneIdSerialization.java | 179 …try (ObjectInputStream ois = new ObjectInputStream(new ByteArrayInputStream(baos.toByteArray()))) { in deserialize() argument 180 deser = (ZoneId) ois.readObject(); in deserialize()
|
/libcore/ojluni/src/test/java/time/tck/java/time/ |
D | AbstractTCKTest.java | 107 …try (ObjectInputStream ois = new ObjectInputStream(new ByteArrayInputStream(baos.toByteArray()))) { in writeThenRead() argument 108 return ois.readObject(); in writeThenRead()
|
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/lang/invoke/ |
D | SerializedLambdaTest.java | 94 try(ObjectInputStream ois = new ObjectInputStream(new ByteArrayInputStream(bytes))) { in deserialize() argument 95 return ois.readObject(); in deserialize()
|
/libcore/support/src/test/java/libcore/javax/net/ssl/ |
D | TestSSLContext.java | 199 ObjectInputStream ois = new ObjectInputStream(new ByteArrayInputStream(baos.toByteArray())); in getLoopbackAsHostname() local 200 return (InetSocketAddress) ois.readObject(); in getLoopbackAsHostname()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | SortedMapTestBase.java | 355 ObjectInputStream ois = new ObjectInputStream(new ByteArrayInputStream(baos.toByteArray())); in testSerialization() local 356 Object read = ois.readObject(); in testSerialization()
|