Home
last modified time | relevance | path

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

123

/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.java48 ObjectOutputStream oos = new ObjectOutputStream(baos); in test_readUnshared() local
49 oos.writeObject("abc"); in test_readUnshared()
50 oos.writeObject("abc"); in test_readUnshared()
51 oos.close(); in test_readUnshared()
73 ObjectOutputStream oos = new ObjectOutputStream(baos); in test_readObject_Hierarchy() local
74 oos.writeObject(new B()); in test_readObject_Hierarchy()
75 oos.close(); in test_readObject_Hierarchy()
201 ObjectOutputStream oos = new ObjectOutputStream(baos); in test_resolveClass_invalidClassName() local
206 oos.writeObject(to1); in test_resolveClass_invalidClassName()
207 oos.flush(); in test_resolveClass_invalidClassName()
[all …]
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()
DObjectOutputStreamTest.java49 private void writeObject(ObjectOutputStream oos) throws IOException { in writeObject() argument
50 oos.writeObject(message); in writeObject()
51 oos.close(); in writeObject()
100 try (ObjectOutputStream oos = new ObjectOutputStream(baos)) { in roundTrip() argument
101 oos.writeObject(object); in roundTrip()
/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/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()
/libcore/ojluni/src/main/java/java/security/cert/
DCertificateRevokedException.java191 private void writeObject(ObjectOutputStream oos) throws IOException { in writeObject() argument
194 oos.defaultWriteObject(); in writeObject()
197 oos.writeInt(extensions.size()); in writeObject()
206 oos.writeObject(ext.getId()); in writeObject()
207 oos.writeBoolean(ext.isCritical()); in writeObject()
209 oos.writeInt(extVal.length); in writeObject()
210 oos.write(extVal); in writeObject()
/libcore/ojluni/src/test/java/math/BigDecimal/
DSerializationTests.java43 ObjectOutputStream oos = new ObjectOutputStream(bos); in checkSerialForm() local
44 oos.writeObject(bd); in checkSerialForm()
45 oos.flush(); in checkSerialForm()
46 oos.close(); in checkSerialForm()
/libcore/ojluni/src/test/java/io/Serializable/records/
DUnsharedTest.java99 ObjectOutputStream oos = new ObjectOutputStream(baos); in serialize() local
101 oos.writeObject(obj); in serialize()
102 oos.close(); in serialize()
109 ObjectOutputStream oos = new ObjectOutputStream(baos); in serializeUnshared() local
111 oos.writeUnshared(obj); in serializeUnshared()
112 oos.close(); in serializeUnshared()
DConstructorAccessTest.java110 ObjectOutputStream oos = new ObjectOutputStream(baos); in serialize() local
111 oos.writeObject(obj); in serialize()
112 oos.close(); in serialize()
/libcore/ojluni/src/test/java/util/UUID/
DSerial.java47 ObjectOutputStream oos = new ObjectOutputStream(baos); in main() local
48 oos.writeObject(a); in main()
54 oos.close(); in main()
/libcore/ojluni/src/test/java/util/Vector/
DSerializationDeadlock.java88 private void writeObject(final ObjectOutputStream oos) in writeObject() argument
90 oos.defaultWriteObject(); in writeObject()
115 final ObjectOutputStream oos = new ObjectOutputStream(baos); in run() local
117 oos.writeObject(vector); in run()
118 oos.close(); in run()
DSimpleSerialization.java54 final ObjectOutputStream oos = new ObjectOutputStream(baos); in main() local
56 oos.writeObject(v1); in main()
57 oos.close(); in main()
/libcore/ojluni/src/test/java/util/Collections/
DReverseOrder.java46 ObjectOutputStream oos = new ObjectOutputStream(bos); in serialBytes() local
47 oos.writeObject(o); in serialBytes()
48 oos.flush(); in serialBytes()
49 oos.close(); in serialBytes()
/libcore/ojluni/src/test/java/util/HashSet/
DSerialization.java63 ObjectOutputStream oos = new ObjectOutputStream(baos); in serDeser() local
64 oos.writeObject(hashSet); in serDeser()
65 oos.flush(); in serDeser()
71 oos.close(); in serDeser()
/libcore/ojluni/src/test/java/text/AttributedCharacterIterator/Attribute/
DReadResolve.java57 ObjectOutputStream oos = new ObjectOutputStream(baos); in doSerializationCycle() local
58 oos.writeObject(attribute); in doSerializationCycle()
59 oos.flush(); in doSerializationCycle()
/libcore/ojluni/src/test/java/util/EnumMap/
DSimpleSerialization.java57 final ObjectOutputStream oos = new ObjectOutputStream(baos); in testSimpleSerialization() local
59 oos.writeObject(enumMap); in testSimpleSerialization()
60 oos.close(); in testSimpleSerialization()
/libcore/ojluni/src/test/java/util/Properties/
DPropertiesSerialization.java99 ObjectOutputStream oos = new ObjectOutputStream(baos); in main() local
100 oos.writeObject(TEST_PROPS); in main()
101 oos.flush(); in main()
102 oos.close(); in main()
/libcore/ojluni/src/test/java/net/UnixDomainSocketAddress/
DUnixDomainSocketAddressSerializationTest.java90 ObjectOutputStream oos = new ObjectOutputStream(bos); in serialize() local
91 oos.writeObject(t); in serialize()
92 oos.flush(); in serialize()
93 oos.close(); in serialize()
/libcore/ojluni/src/main/java/java/security/
DGuardedObject.java95 private void writeObject(java.io.ObjectOutputStream oos) in writeObject() argument
101 oos.defaultWriteObject(); in writeObject()
/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()

123