Home
last modified time | relevance | path

Searched refs:ois (Results 1 – 25 of 28) sorted by relevance

12

/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/io/
DObjectInputStreamTest.java74 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/
DSerializationStressTest.java87 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 …]
DObjectOutputStreamTest.java66 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 …]
DStreamCorruptedExceptionTest.java33 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()
DObjectInputStream2Test.java47 ObjectInputStream ois = new ObjectInputStream( in test_readUnshared() local
49 ois.readUnshared(); in test_readUnshared()
50 ois.readObject(); in test_readUnshared()
51 ois.close(); in test_readUnshared()
71 ObjectInputStream ois = new ObjectInputStream(new ByteArrayInputStream( in test_readObject_Hierarchy() local
73 B b = (B) ois.readObject(); in test_readObject_Hierarchy()
74 ois.close(); in test_readObject_Hierarchy()
197 ObjectInputStream ois; in test_resolveClass_invalidClassName() local
204 ois = new TestObjectInputStream(bais); in test_resolveClass_invalidClassName()
207 ois.readObject(); in test_resolveClass_invalidClassName()
DObjectStreamFieldTest.java166 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/
DOldObjectInputStreamGetFieldTest.java57 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 …]
DOldObjectOutputStreamTest.java50 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 …]
/libcore/luni/src/main/java/org/apache/harmony/security/provider/crypto/
DSHA1PRNG_SecureRandomImpl.java494 private void readObject(ObjectInputStream ois) throws IOException,
501 seedLength = ois.readLong();
502 counter = ois.readLong();
503 state = ois.readInt();
504 seed[BYTES_OFFSET] = ois.readInt();
511 seed[i] = ois.readInt();
514 seed[HASH_OFFSET + i] = ois.readInt();
520 seed[FRAME_LENGTH] = ois.readInt();
521 seed[FRAME_LENGTH + 1] = ois.readInt();
522 seed[FRAME_LENGTH + 14] = ois.readInt();
[all …]
/libcore/luni/src/main/java/java/security/
DSignedObject.java104 ObjectInputStream ois = new ObjectInputStream(new ByteArrayInputStream( in getObject() local
107 return ois.readObject(); in getObject()
109 ois.close(); in getObject()
/libcore/support/src/test/java/tests/util/
DSerializationTester.java53 ObjectInputStream ois = new ObjectInputStream(bis); in getDeserilizedObject() local
54 Object outputObject = ois.readObject(); in getDeserilizedObject()
55 ois.close(); in getDeserilizedObject()
/libcore/luni/src/main/java/javax/crypto/
DSealedObject.java295 ObjectInputStream ois = null; in readSerialized() local
297 ois = new ObjectInputStream(new ByteArrayInputStream(serialized)); in readSerialized()
298 return ois.readObject(); in readSerialized()
300 IoUtils.closeQuietly(ois); in readSerialized()
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/
DSealedObjectTest.java77 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/
DSupport_GetPutFieldsDefaulted.java117 private void readObject(ObjectInputStream ois) throws Exception { in readObject() argument
118 getField = ois.readFields(); in readObject()
DSupport_GetPutFields.java106 private void readObject(ObjectInputStream ois) throws Exception { in readObject() argument
107 getField = ois.readFields(); in readObject()
DSupport_GetPutFieldsDeprecated.java108 private void readObject(ObjectInputStream ois) throws Exception { in readObject() argument
/libcore/luni/src/main/java/libcore/reflect/
DAnnotationMember.java318 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/
DSerializationTest.java162 ObjectInputStream ois = new ObjectInputStream(is); in getObjectFromStream() local
163 Object result = ois.readObject(); in getObjectFromStream()
164 ois.close(); in getObjectFromStream()
/libcore/luni/src/main/java/java/text/
DDateFormatSymbols.java151 private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException { in readObject() argument
152 ois.defaultReadObject(); in readObject()
/libcore/luni/src/test/java/libcore/java/security/
DKeyPairGeneratorTest.java293 ObjectInputStream ois = new ObjectInputStream(bais); in test_Key() local
294 Key inflatedKey = (Key) ois.readObject(); in test_Key()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DSortedMapTestBase.java355 ObjectInputStream ois = new ObjectInputStream(new ByteArrayInputStream(baos.toByteArray())); in testSerialization() local
356 Object read = ois.readObject(); in testSerialization()
/libcore/luni/src/main/java/java/util/
DBitSet.java747 private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException { in readObject() argument
748 ois.defaultReadObject(); in readObject()
/libcore/luni/src/test/java/libcore/java/security/cert/
DCertificateFactoryTest.java507 ObjectInputStream ois = new ObjectInputStream(bais); in testCertPathEncoding() local
508 Object output = ois.readObject(); in testCertPathEncoding()
/libcore/jsr166-tests/src/test/java/jsr166/
DJSR166TestCase.java1109 ObjectInputStream ois = new ObjectInputStream
1111 T clone = (T) ois.readObject();
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/math/
DBigDecimalTest.java892 ObjectInputStream ois = new ObjectInputStream(bis); in test_BigDecimal_serialization() local
893 BigDecimal nbd = (BigDecimal) ois.readObject(); in test_BigDecimal_serialization()

12