Home
last modified time | relevance | path

Searched refs:oos (Results 1 – 25 of 27) sorted by relevance

12

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DSerializationStressTest.java89 protected transient ObjectOutputStream oos; field in SerializationStressTest
210 oos.writeObject(o); in dump()
212 oos.close(); in dump()
250 oos = new ObjectOutputStream(new FileOutputStream(xFileName in setUp()
253 oos = new ObjectOutputStream(bao = new ByteArrayOutputStream()); in setUp()
265 if (oos != null) { in tearDown()
267 oos.close(); in tearDown()
275 oos.close(); in test_1_Constructor()
276 oos = new ObjectOutputStream(new ByteArrayOutputStream()); in test_1_Constructor()
277 oos.close(); in test_1_Constructor()
[all …]
DObjectOutputStreamTest.java75 private void writeObject(ObjectOutputStream oos) throws IOException { in writeObject() argument
77 ObjectOutputStream.PutField fields = oos.putFields(); in writeObject()
79 oos.writeFields(); in writeObject()
570 protected ObjectOutputStream oos; field in ObjectOutputStreamTest
583 oos.close(); in test_ConstructorLjava_io_OutputStream()
584 oos = new ObjectOutputStream(new ByteArrayOutputStream()); in test_ConstructorLjava_io_OutputStream()
585 oos.close(); in test_ConstructorLjava_io_OutputStream()
601 oos.defaultWriteObject(); in test_defaultWriteObject()
614 oos.writeByte(127); in test_flush()
616 oos.flush(); in test_flush()
[all …]
DObjectInputStream2Test.java42 ObjectOutputStream oos = new ObjectOutputStream(baos); in test_readUnshared() local
43 oos.writeObject("abc"); in test_readUnshared()
44 oos.writeObject("abc"); in test_readUnshared()
45 oos.close(); in test_readUnshared()
67 ObjectOutputStream oos = new ObjectOutputStream(baos); in test_readObject_Hierarchy() local
68 oos.writeObject(new B()); in test_readObject_Hierarchy()
69 oos.close(); in test_readObject_Hierarchy()
195 ObjectOutputStream oos = new ObjectOutputStream(baos); in test_resolveClass_invalidClassName() local
200 oos.writeObject(to1); in test_resolveClass_invalidClassName()
201 oos.flush(); in test_resolveClass_invalidClassName()
DObjectStreamFieldTest.java159 ObjectOutputStream oos = new ObjectOutputStream(baos); in test_getType_Deserialized() local
160 oos.writeObject(new SerializableObject()); in test_getType_Deserialized()
161 oos.close(); in test_getType_Deserialized()
180 ObjectOutputStream oos = new ObjectOutputStream(baos); in test_getType_MockObjectInputStream() local
181 oos.writeObject(new SerializableObject()); in test_getType_MockObjectInputStream()
182 oos.close(); in test_getType_MockObjectInputStream()
199 ObjectOutputStream oos = new ObjectOutputStream(baos); in test_isUnshared() local
200 oos.writeObject(obj); in test_isUnshared()
201 oos.close(); in test_isUnshared()
234 final MyObjectOutputStream oos = new MyObjectOutputStream(baos); in test_ObjectWithPrimitiveField() local
[all …]
/libcore/luni/src/test/java/libcore/java/io/
DOldObjectOutputStreamTest.java59 private void writeObject(ObjectOutputStream oos) throws IOException { in writeObject() argument
61 ObjectOutputStream.PutField fields = oos.putFields(); in writeObject()
63 oos.writeFields(); in writeObject()
138 protected ObjectOutputStream oos; field in OldObjectOutputStreamTest
154 oos.close(); in test_ConstructorLjava_io_OutputStream()
155 oos = new ObjectOutputStream(new ByteArrayOutputStream()); in test_ConstructorLjava_io_OutputStream()
156 oos.close(); in test_ConstructorLjava_io_OutputStream()
159 oos = new ObjectOutputStream(null); in test_ConstructorLjava_io_OutputStream()
167 oos = new ObjectOutputStream(sos); in test_ConstructorLjava_io_OutputStream()
177 oos.writeInt(42); in test_close()
[all …]
DOldObjectOutputStreamPutFieldTest.java74 ObjectOutputStream oos = null; in test_put() local
83 oos = new ObjectOutputStream(baos); in test_put()
85 oos.writeObject(toSerialize); in test_put()
91 if (oos != null) oos.close(); in test_put()
99 ObjectOutputStream oos = null; in test_writeLjava_io_ObjectOutputStream() local
108 oos = new ObjectOutputStream(baos); in test_writeLjava_io_ObjectOutputStream()
110 oos.writeObject(toSerialize); in test_writeLjava_io_ObjectOutputStream()
116 if (oos != null) oos.close(); in test_writeLjava_io_ObjectOutputStream()
/libcore/support/src/test/java/tests/util/
DFieldTestFileGenerator.java43 ObjectOutputStream oos = null; in main() local
58 oos = new ObjectOutputStream(fos); in main()
59 oos.writeObject(toSerialize); in main()
60 oos.close(); in main()
73 oos = new ObjectOutputStream(fos); in main()
74 oos.writeObject(toSerializeDeprecated); in main()
75 oos.close(); in main()
88 oos = new ObjectOutputStream(fos); in main()
89 oos.writeObject(toSerializeDefaulted); in main()
90 oos.close(); in main()
DSerializationTester.java48 ObjectOutputStream oos = new ObjectOutputStream(bos); in getDeserilizedObject() local
49 oos.writeObject(inputObject); in getDeserilizedObject()
50 oos.close(); in getDeserilizedObject()
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/io/
DObjectInputStreamTest.java80 private void writeObject(ObjectOutputStream oos) throws IOException { in writeObject() argument
82 ObjectOutputStream.PutField fields = oos.putFields(); in writeObject()
84 oos.writeFields(); in writeObject()
126 ObjectOutputStream oos; field in ObjectInputStreamTest
137 oos.writeObject(testString); in test_ConstructorLjava_io_InputStream_IOException()
138 oos.close(); in test_ConstructorLjava_io_InputStream_IOException()
155 ObjectOutputStreamWithWriteDesc oos = new ObjectOutputStreamWithWriteDesc( in test_ClassDescriptor() local
157 oos.writeObject(String.class); in test_ClassDescriptor()
158 oos.close(); in test_ClassDescriptor()
169 oos.writeObject(testString); in test_available_IOException()
[all …]
/libcore/luni/src/main/java/java/io/
DEmulatedFieldsForDumping.java31 private final ObjectOutputStream oos; field in EmulatedFieldsForDumping
43 EmulatedFieldsForDumping(ObjectOutputStream oos, ObjectStreamClass streamClass) { in EmulatedFieldsForDumping() argument
44 this.oos = oos; in EmulatedFieldsForDumping()
197 if (!output.equals(oos)) { in write()
/libcore/luni/src/main/java/java/security/
DSignedObject.java77 ObjectOutputStream oos = new ObjectOutputStream(baos); in SignedObject() local
80 oos.writeObject(object); in SignedObject()
81 oos.flush(); in SignedObject()
83 oos.close(); in SignedObject()
/libcore/luni/src/main/java/org/apache/harmony/security/provider/crypto/
DSHA1PRNG_SecureRandomImpl.java424 private void writeObject(ObjectOutputStream oos) throws IOException {
433 oos.writeLong(seedLength);
434 oos.writeLong(counter);
435 oos.writeInt(state);
436 oos.writeInt(seed[BYTES_OFFSET]);
487 oos.writeInt(intData[i]);
490 oos.writeInt(nextBIndex);
491 oos.write(nextBytes, nextBIndex, HASHBYTES_TO_USE - nextBIndex);
/libcore/luni/src/main/java/javax/crypto/
DSealedObject.java103 ObjectOutputStream oos = null; in SealedObject() local
106 oos = new ObjectOutputStream(bos); in SealedObject()
107 oos.writeObject(object); in SealedObject()
108 oos.flush(); in SealedObject()
119 IoUtils.closeQuietly(oos); in SealedObject()
/libcore/support/src/test/java/tests/support/
DSupport_GetPutFieldsDefaulted.java132 private void writeObject(ObjectOutputStream oos) throws IOException { in writeObject() argument
133 putField = oos.putFields(); in writeObject()
136 oos.writeFields(); in writeObject()
DSupport_GetPutFields.java120 private void writeObject(ObjectOutputStream oos) throws IOException { in writeObject() argument
121 putField = oos.putFields(); in writeObject()
131 oos.writeFields(); in writeObject()
DSupport_GetPutFieldsDeprecated.java121 private void writeObject(ObjectOutputStream oos) throws IOException { in writeObject() argument
122 putField = oos.putFields(); in writeObject()
132 putField.write(oos); in writeObject()
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/
DSealedObjectTest.java74 ObjectOutputStream oos = new ObjectOutputStream(bos); in testReadObject() local
75 oos.writeObject(so); in testReadObject()
183 ObjectOutputStream oos = new ObjectOutputStream(baos); in testGetAlgorithmAfterSerialization() local
184 oos.writeObject(so); in testGetAlgorithmAfterSerialization()
185 oos.close(); in testGetAlgorithmAfterSerialization()
/libcore/luni/src/main/java/libcore/reflect/
DAnnotationMember.java312 ObjectOutputStream oos = new ObjectOutputStream(bos); in rethrowError() local
313 oos.writeObject(error); in rethrowError()
314 oos.flush(); in rethrowError()
315 oos.close(); in rethrowError()
/libcore/luni/src/test/java/tests/security/cert/
DCertificateFactory1Test.java430 ObjectOutputStream oos = new ObjectOutputStream(os); in testCertificateFactory11() local
431 oos.writeObject(mc); in testCertificateFactory11()
432 oos.flush(); in testCertificateFactory11()
433 oos.close(); in testCertificateFactory11()
541 ObjectOutputStream oos = new ObjectOutputStream(os); in testCertificateFactory13() local
542 oos.writeObject(mc); in testCertificateFactory13()
543 oos.flush(); in testCertificateFactory13()
544 oos.close(); in testCertificateFactory13()
/libcore/support/src/test/java/org/apache/harmony/testframework/serialization/
DSerializationTest.java151 ObjectOutputStream oos = new ObjectOutputStream(os); in putObjectToStream() local
152 oos.writeObject(obj); in putObjectToStream()
153 oos.flush(); in putObjectToStream()
154 oos.close(); in putObjectToStream()
/libcore/luni/src/main/java/java/text/
DDateFormatSymbols.java162 private void writeObject(ObjectOutputStream oos) throws IOException { in writeObject() argument
164 oos.defaultWriteObject(); in writeObject()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DSortedMapTestBase.java352 ObjectOutputStream oos = new ObjectOutputStream(baos); in testSerialization() local
353 oos.writeObject(map); in testSerialization()
354 oos.close(); in testSerialization()
/libcore/jsr166-tests/src/test/java/jsr166/
DJSR166TestCase.java1095 ObjectOutputStream oos = new ObjectOutputStream(bos);
1096 oos.writeObject(o);
1097 oos.flush();
1098 oos.close();
/libcore/luni/src/test/java/libcore/java/security/cert/
DCertificateFactoryTest.java501 ObjectOutputStream oos = new ObjectOutputStream(baos); in testCertPathEncoding() local
502 oos.writeObject(actualPath); in testCertPathEncoding()
503 oos.close(); in testCertPathEncoding()
/libcore/luni/src/test/java/libcore/java/security/
DKeyPairGeneratorTest.java289 ObjectOutputStream oos = new ObjectOutputStream(baos); in test_Key() local
290 oos.writeObject(k); in test_Key()

12