Home
last modified time | relevance | path

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

123

/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 …]
DObjectInputStream2Test.java53 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 …]
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()
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 …]
DObjectOutputStreamTest.java54 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/
DCertificateRevokedException.java217 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/
DSerial.java50 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/
DSimpleSerialization.java64 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/
DPropertiesSerialization.java87 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/
DSimpleSerialization.java61 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/
DUnsharedTest.java118 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/
DSerialization.java68 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/
DSerializationTester.java53 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/
DParseExceptionTest.java55 ObjectInputStream ois = new ObjectInputStream(inputStream)) { in test_serialize()
57 Object object = ois.readObject(); in test_serialize()
/libcore/ojluni/src/test/java/text/AttributedCharacterIterator/Attribute/
DReadResolve.java64 ObjectInputStream ois = new ObjectInputStream(bais); in doSerializationCycle() local
65 Attribute result = (Attribute) ois.readObject(); in doSerializationCycle()
/libcore/ojluni/src/test/java/math/BigDecimal/
DSerializationTests.java47 ObjectInputStream ois = new in checkSerialForm() local
49 BigDecimal tmp = (BigDecimal)ois.readObject(); in checkSerialForm()
/libcore/ojluni/src/main/java/java/security/
DCodeSigner.java168 private void readObject(ObjectInputStream ois) in readObject() argument
170 ois.defaultReadObject(); in readObject()
DTimestamp.java158 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/
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/luni/src/test/java/libcore/libcore/util/
DZoneInfoTest.java46 ObjectInputStream ois = new ObjectInputStream(is)) { in testReadSerialized()
47 Object object = ois.readObject(); in testReadSerialized()
/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()

123