/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 | 53 ObjectInputStream ois = new ObjectInputStream( in test_readUnshared() local 55 ois.readUnshared(); in test_readUnshared() 56 ois.readObject(); in test_readUnshared() 57 ois.close(); in test_readUnshared() 77 ObjectInputStream ois = new ObjectInputStream(new ByteArrayInputStream( in test_readObject_Hierarchy() local 79 B b = (B) ois.readObject(); in test_readObject_Hierarchy() 80 ois.close(); in test_readObject_Hierarchy() 203 ObjectInputStream ois; in test_resolveClass_invalidClassName() local 210 ois = new TestObjectInputStream(bais); in test_resolveClass_invalidClassName() 213 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/ojluni/src/test/java/util/UUID/ |
D | Serial.java | 50 ObjectInputStream ois = new ObjectInputStream(bais); in main() local 51 UUID b = (UUID)ois.readObject(); in main() 55 ois.close(); in main()
|
/libcore/ojluni/src/test/java/util/EnumMap/ |
D | SimpleSerialization.java | 64 final ObjectInputStream ois = new ObjectInputStream(bais); in testSimpleSerialization() local 66 final Object deserializedObject = ois.readObject(); in testSimpleSerialization() 67 ois.close(); in testSimpleSerialization()
|
/libcore/ojluni/src/test/java/util/Properties/ |
D | PropertiesSerialization.java | 87 try (ObjectInputStream ois = new ObjectInputStream(bais)) { in main() argument 88 deserializedObject = (Properties) ois.readObject(); in main() 107 ObjectInputStream ois = new ObjectInputStream(bais); in main() local 108 Properties deser = (Properties)ois.readObject(); in main()
|
/libcore/ojluni/src/test/java/util/Vector/ |
D | SimpleSerialization.java | 61 final ObjectInputStream ois = new ObjectInputStream(bais); in main() local 63 final Object deserializedObject = ois.readObject(); in main() 64 ois.close(); in main()
|
/libcore/ojluni/src/test/java/io/Serializable/records/ |
D | UnsharedTest.java | 118 static Object deserializeOne(ObjectInputStream ois) in deserializeOne() argument 121 return ois.readObject(); in deserializeOne() 125 static Object deserializeOneUnshared(ObjectInputStream ois) in deserializeOneUnshared() argument 128 return ois.readUnshared(); in deserializeOneUnshared()
|
/libcore/ojluni/src/test/java/util/HashSet/ |
D | Serialization.java | 68 ObjectInputStream ois = new ObjectInputStream(bais); in serDeser() local 69 HashSet<Integer> result = (HashSet<Integer>)ois.readObject(); in serDeser() 72 ois.close(); in serDeser()
|
/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/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/ojluni/src/test/java/text/AttributedCharacterIterator/Attribute/ |
D | ReadResolve.java | 64 ObjectInputStream ois = new ObjectInputStream(bais); in doSerializationCycle() local 65 Attribute result = (Attribute) ois.readObject(); in doSerializationCycle()
|
/libcore/ojluni/src/test/java/math/BigDecimal/ |
D | SerializationTests.java | 47 ObjectInputStream ois = new in checkSerialForm() local 49 BigDecimal tmp = (BigDecimal)ois.readObject(); in checkSerialForm()
|
/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/luni/src/test/java/libcore/libcore/util/ |
D | ZoneInfoTest.java | 46 ObjectInputStream ois = new ObjectInputStream(is)) { in testReadSerialized() 47 Object object = ois.readObject(); in testReadSerialized()
|
/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()
|