/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
D | SerializationStressTest.java | 89 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 …]
|
D | ObjectOutputStreamTest.java | 75 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 …]
|
D | ObjectInputStream2Test.java | 47 ObjectOutputStream oos = new ObjectOutputStream(baos); in test_readUnshared() local 48 oos.writeObject("abc"); in test_readUnshared() 49 oos.writeObject("abc"); in test_readUnshared() 50 oos.close(); in test_readUnshared() 72 ObjectOutputStream oos = new ObjectOutputStream(baos); in test_readObject_Hierarchy() local 73 oos.writeObject(new B()); in test_readObject_Hierarchy() 74 oos.close(); in test_readObject_Hierarchy() 200 ObjectOutputStream oos = new ObjectOutputStream(baos); in test_resolveClass_invalidClassName() local 205 oos.writeObject(to1); in test_resolveClass_invalidClassName() 206 oos.flush(); in test_resolveClass_invalidClassName() [all …]
|
D | ObjectStreamFieldTest.java | 159 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/ |
D | OldObjectOutputStreamTest.java | 59 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 …]
|
D | OldObjectOutputStreamPutFieldTest.java | 74 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()
|
D | ObjectOutputStreamTest.java | 49 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/ |
D | ObjectInputStreamTest.java | 80 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/ |
D | FieldTestFileGenerator.java | 43 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()
|
D | SerializationTester.java | 48 ObjectOutputStream oos = new ObjectOutputStream(bos); in getDeserilizedObject() local 49 oos.writeObject(inputObject); in getDeserilizedObject() 50 oos.close(); in getDeserilizedObject()
|
/libcore/ojluni/src/main/java/java/security/cert/ |
D | CertificateRevokedException.java | 191 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/main/java/java/security/ |
D | GuardedObject.java | 94 private void writeObject(java.io.ObjectOutputStream oos) in writeObject() argument 100 oos.defaultWriteObject(); in writeObject()
|
/libcore/support/src/test/java/tests/support/ |
D | Support_GetPutFieldsDefaulted.java | 132 private void writeObject(ObjectOutputStream oos) throws IOException { in writeObject() argument 133 putField = oos.putFields(); in writeObject() 136 oos.writeFields(); in writeObject()
|
D | Support_GetPutFields.java | 120 private void writeObject(ObjectOutputStream oos) throws IOException { in writeObject() argument 121 putField = oos.putFields(); in writeObject() 131 oos.writeFields(); in writeObject()
|
D | Support_GetPutFieldsDeprecated.java | 121 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/ |
D | SealedObjectTest.java | 74 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/ojluni/src/test/java/time/tck/java/time/ |
D | AbstractTCKTest.java | 104 try (ObjectOutputStream oos = new ObjectOutputStream(baos) ) { in writeThenRead() argument 105 oos.writeObject(object); in writeThenRead() 119 try (ObjectOutputStream oos = new ObjectOutputStream(baos) ) { in assertSerializedBySer() argument 120 oos.writeObject(object); in assertSerializedBySer()
|
/libcore/luni/src/main/java/libcore/reflect/ |
D | AnnotationMember.java | 312 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/ojluni/src/test/java/time/tck/java/time/temporal/serial/ |
D | TCKValueRangeSerialization.java | 117 ObjectOutputStream oos = new ObjectOutputStream(baos) ) { in test_valueRangeSerialized() 118 oos.writeObject(range); in test_valueRangeSerialized()
|
/libcore/luni/src/test/java/tests/security/cert/ |
D | CertificateFactory1Test.java | 430 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/ |
D | SerializationTest.java | 151 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/test/java/libcore/java/util/ |
D | HashtableTest.java | 150 try (ObjectOutputStream oos = new ObjectOutputStream(bos)) { in test_deserializedArrayLength() argument 151 oos.writeObject(hashtable1); in test_deserializedArrayLength()
|
/libcore/ojluni/src/main/java/javax/security/auth/ |
D | Subject.java | 952 private void writeObject(java.io.ObjectOutputStream oos) 955 oos.defaultWriteObject(); 1315 private void writeObject(java.io.ObjectOutputStream oos) 1325 ObjectOutputStream.PutField fields = oos.putFields(); 1329 oos.writeFields();
|
/libcore/support/src/test/java/libcore/javax/net/ssl/ |
D | TestSSLContext.java | 195 … HostnameRewritingObjectOutputStream oos = new HostnameRewritingObjectOutputStream(baos, hostname); in getLoopbackAsHostname() local 196 oos.writeObject(addr); in getLoopbackAsHostname() 197 oos.close(); in getLoopbackAsHostname()
|
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/lang/invoke/ |
D | SerializedLambdaTest.java | 87 ObjectOutputStream oos = new ObjectOutputStream(bos); in serialize() local 88 oos.writeObject(o); in serialize() 89 oos.close(); in serialize()
|