corba/src/share/classes/com/sun/corba/se/impl/io/OutputStreamHook.java
Print this page
*** 1,7 ****
/*
! * Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
--- 1,7 ----
/*
! * Copyright (c) 1999, 2014, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
*** 33,43 ****
import java.io.IOException;
import java.io.OutputStream;
import java.io.ObjectOutputStream;
import java.io.ObjectOutput;
! import java.util.Hashtable;
import org.omg.CORBA.INTERNAL;
public abstract class OutputStreamHook extends ObjectOutputStream
{
--- 33,44 ----
import java.io.IOException;
import java.io.OutputStream;
import java.io.ObjectOutputStream;
import java.io.ObjectOutput;
! import java.util.Map;
! import java.util.HashMap;
import org.omg.CORBA.INTERNAL;
public abstract class OutputStreamHook extends ObjectOutputStream
{
*** 47,57 ****
* Since ObjectOutputStream.PutField methods specify no exceptions,
* we are not checking for null parameters on put methods.
*/
private class HookPutFields extends ObjectOutputStream.PutField
{
! private Hashtable fields = new Hashtable();
/**
* Put the value of the named boolean field into the persistent field.
*/
public void put(String name, boolean value){
--- 48,58 ----
* Since ObjectOutputStream.PutField methods specify no exceptions,
* we are not checking for null parameters on put methods.
*/
private class HookPutFields extends ObjectOutputStream.PutField
{
! private Map<String,Object> fields = new HashMap<>();
/**
* Put the value of the named boolean field into the persistent field.
*/
public void put(String name, boolean value){
*** 138,148 ****
abstract void writeField(ObjectStreamField field, Object value) throws IOException;
public OutputStreamHook()
throws java.io.IOException {
super();
-
}
public void defaultWriteObject() throws IOException {
writeObjectState.defaultWriteObject(this);
--- 139,148 ----