test/jdk/java/io/Serializable/InvalidClassException/noargctor/Serialize/SubclassAcrossPackage.java
author erikj
Tue, 12 Sep 2017 19:03:39 +0200
changeset 47216 71c04702a3d5
parent 5506 jdk/test/java/io/Serializable/InvalidClassException/noargctor/Serialize/SubclassAcrossPackage.java@202f599c92aa
child 58565 baa5969ecf34
permissions -rw-r--r--
8187443: Forest Consolidation: Move files to unified layout Reviewed-by: darcy, ihse
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
/*
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
     2
 * Copyright (c) 1998, Oracle and/or its affiliates. All rights reserved.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
90ce3da70b43 Initial load
duke
parents:
diff changeset
     7
 * published by the Free Software Foundation.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
     9
 * This code is distributed in the hope that it will be useful, but WITHOUT
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
 * version 2 for more details (a copy is included in the LICENSE file that
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
 * accompanied this code).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License version
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
 * 2 along with this work; if not, write to the Free Software Foundation,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
 *
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    19
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    20
 * or visit www.oracle.com if you need additional information or have any
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    21
 * questions.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    22
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    23
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
/*
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
 * @bug 4093279
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
 * REMOVED test, build and run tag since could not get this to work.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
 * Test is run via shell script, run.sh.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
package Serialize;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
import java.io.*;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
class PublicSerializable
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
extends NonSerializable.PublicCtor implements Serializable
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
{
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
    int field1 = 5;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
};
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
class ProtectedSerializable
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
extends NonSerializable.ProtectedCtor implements Serializable
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
{
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
    int field1 = 5;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
};
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
class DifferentPackageSerializable
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
extends NonSerializable.PackageCtor implements Serializable
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
{
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
    int field1 = 5;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
    DifferentPackageSerializable() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
        super(1);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
};
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
class SamePackageSerializable
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
extends Serialize.SamePackageCtor implements Serializable
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
{
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
    SamePackageSerializable() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
};
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
class SamePackageProtectedCtor {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
    protected SamePackageProtectedCtor() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
};
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
class SamePackageProtectedSerializable
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
extends Serialize.SamePackageProtectedCtor implements Serializable
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
{
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
    SamePackageProtectedSerializable() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
};
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
class SamePackagePrivateCtor {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
    private SamePackagePrivateCtor() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
    public SamePackagePrivateCtor(int l) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
};
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
class SamePackagePrivateSerializable
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
extends Serialize.SamePackagePrivateCtor implements Serializable
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
{
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
    SamePackagePrivateSerializable() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
        super(1);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
};
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
class PrivateSerializable
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
extends NonSerializable.PrivateCtor implements Serializable
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
{
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
    int field1 = 5;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
    PrivateSerializable() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
        super(1);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
};
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
class ExternalizablePublicCtor implements Externalizable {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
    public ExternalizablePublicCtor() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
    public void writeExternal(ObjectOutput out) throws IOException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
    public void readExternal(ObjectInput in)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
        throws IOException, ClassNotFoundException
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
        {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
};
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
class ExternalizableProtectedCtor implements Externalizable {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
    protected ExternalizableProtectedCtor() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
    public void writeExternal(ObjectOutput out) throws IOException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
    public void readExternal(ObjectInput in)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   117
        throws IOException, ClassNotFoundException
90ce3da70b43 Initial load
duke
parents:
diff changeset
   118
        {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   119
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   120
};
90ce3da70b43 Initial load
duke
parents:
diff changeset
   121
90ce3da70b43 Initial load
duke
parents:
diff changeset
   122
class ExternalizablePackageCtor implements Externalizable {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   123
    ExternalizablePackageCtor() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   124
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   125
    public void writeExternal(ObjectOutput out) throws IOException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   126
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   127
    public void readExternal(ObjectInput in)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   128
        throws IOException, ClassNotFoundException
90ce3da70b43 Initial load
duke
parents:
diff changeset
   129
        {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   130
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   131
};
90ce3da70b43 Initial load
duke
parents:
diff changeset
   132
90ce3da70b43 Initial load
duke
parents:
diff changeset
   133
class ExternalizablePrivateCtor implements Externalizable {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   134
    private ExternalizablePrivateCtor() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   135
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   136
    public ExternalizablePrivateCtor(int i) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   137
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   138
    public void writeExternal(ObjectOutput out) throws IOException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   139
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   140
    public void readExternal(ObjectInput in)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   141
        throws IOException, ClassNotFoundException
90ce3da70b43 Initial load
duke
parents:
diff changeset
   142
        {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   143
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   144
};
90ce3da70b43 Initial load
duke
parents:
diff changeset
   145
90ce3da70b43 Initial load
duke
parents:
diff changeset
   146
90ce3da70b43 Initial load
duke
parents:
diff changeset
   147
public class SubclassAcrossPackage {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   148
    public static void main(String args[])
90ce3da70b43 Initial load
duke
parents:
diff changeset
   149
        throws IOException, ClassNotFoundException
90ce3da70b43 Initial load
duke
parents:
diff changeset
   150
        {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   151
            ByteArrayOutputStream baos = new ByteArrayOutputStream();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   152
            ObjectOutputStream out =   new ObjectOutputStream(baos);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   153
            out.writeObject(new PublicSerializable());
90ce3da70b43 Initial load
duke
parents:
diff changeset
   154
            out.writeObject(new ProtectedSerializable());
90ce3da70b43 Initial load
duke
parents:
diff changeset
   155
            out.writeObject(new SamePackageSerializable());
90ce3da70b43 Initial load
duke
parents:
diff changeset
   156
            out.writeObject(new SamePackageProtectedSerializable());
90ce3da70b43 Initial load
duke
parents:
diff changeset
   157
            out.writeObject(new DifferentPackageSerializable());
90ce3da70b43 Initial load
duke
parents:
diff changeset
   158
90ce3da70b43 Initial load
duke
parents:
diff changeset
   159
            InputStream is = new ByteArrayInputStream(baos.toByteArray());
90ce3da70b43 Initial load
duke
parents:
diff changeset
   160
            ObjectInputStream in = new ObjectInputStream(is);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   161
            /* (PublicSerializable)*/ in.readObject();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   162
            /* (ProtectedSerializable) */ in.readObject();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   163
            /* (SamePackageSerializable) */ in.readObject();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   164
            /* (SamePackageProtectedSerializable) */ in.readObject();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   165
            try {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   166
            /* (DifferentPackageSerializable) */ in.readObject();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   167
            } catch (InvalidClassException e) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   168
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   169
            in.close();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   170
90ce3da70b43 Initial load
duke
parents:
diff changeset
   171
            baos.reset();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   172
            out = new ObjectOutputStream(baos);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   173
            out.writeObject(new PrivateSerializable());
90ce3da70b43 Initial load
duke
parents:
diff changeset
   174
            in = new ObjectInputStream(new ByteArrayInputStream(baos.toByteArray()));
90ce3da70b43 Initial load
duke
parents:
diff changeset
   175
            try {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   176
                /* (PrivateSerializable) */ in.readObject();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   177
                throw new Error("Expected InvalidClassException reading PrivateSerialziable");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   178
            } catch (InvalidClassException e) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   179
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   180
            in.close();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   181
90ce3da70b43 Initial load
duke
parents:
diff changeset
   182
            baos.reset();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   183
            out = new ObjectOutputStream(baos);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   184
            out.writeObject(new SamePackagePrivateSerializable());
90ce3da70b43 Initial load
duke
parents:
diff changeset
   185
            in = new ObjectInputStream(new ByteArrayInputStream(baos.toByteArray()));
90ce3da70b43 Initial load
duke
parents:
diff changeset
   186
            try {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   187
                /* (SamePackagePrivateSerializable) */ in.readObject();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   188
                throw new Error("Expected InvalidClassException reading PrivateSerialziable");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   189
            } catch (InvalidClassException e) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   190
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   191
            in.close();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   192
90ce3da70b43 Initial load
duke
parents:
diff changeset
   193
            baos.reset();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   194
            out = new ObjectOutputStream(baos);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   195
            out.writeObject(new ExternalizablePublicCtor());
90ce3da70b43 Initial load
duke
parents:
diff changeset
   196
90ce3da70b43 Initial load
duke
parents:
diff changeset
   197
            in = new ObjectInputStream(new ByteArrayInputStream(baos.toByteArray()));
90ce3da70b43 Initial load
duke
parents:
diff changeset
   198
            /* (ExternalizablePublicCtor) */ in.readObject();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   199
            in.close();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   200
90ce3da70b43 Initial load
duke
parents:
diff changeset
   201
            baos.reset();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   202
            out = new ObjectOutputStream(baos);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   203
            out.writeObject(new ExternalizableProtectedCtor());
90ce3da70b43 Initial load
duke
parents:
diff changeset
   204
90ce3da70b43 Initial load
duke
parents:
diff changeset
   205
90ce3da70b43 Initial load
duke
parents:
diff changeset
   206
            in = new ObjectInputStream(new ByteArrayInputStream(baos.toByteArray()));
90ce3da70b43 Initial load
duke
parents:
diff changeset
   207
            try {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   208
                /* (ExternalizableProtectedCtor) */ in.readObject();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   209
                throw new Error("Expected InvalidClassException reading ExternalizableProtectedCtor");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   210
            } catch (InvalidClassException e) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   211
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   212
            in.close();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   213
90ce3da70b43 Initial load
duke
parents:
diff changeset
   214
            baos.reset();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   215
            out = new ObjectOutputStream(baos);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   216
            out.writeObject(new ExternalizablePackageCtor());
90ce3da70b43 Initial load
duke
parents:
diff changeset
   217
90ce3da70b43 Initial load
duke
parents:
diff changeset
   218
            in = new ObjectInputStream(new ByteArrayInputStream(baos.toByteArray()));
90ce3da70b43 Initial load
duke
parents:
diff changeset
   219
            try {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   220
                /* (ExternalizablePackageCtor) */ in.readObject();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   221
                throw new Error("Expected InvalidClassException reading ExternalizablePackageCtor");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   222
            } catch (InvalidClassException e) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   223
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   224
            in.close();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   225
90ce3da70b43 Initial load
duke
parents:
diff changeset
   226
            baos.reset();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   227
            out = new ObjectOutputStream(baos);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   228
            out.writeObject(new ExternalizablePrivateCtor(2));
90ce3da70b43 Initial load
duke
parents:
diff changeset
   229
90ce3da70b43 Initial load
duke
parents:
diff changeset
   230
            in = new ObjectInputStream(new ByteArrayInputStream(baos.toByteArray()));
90ce3da70b43 Initial load
duke
parents:
diff changeset
   231
            try {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   232
                /* (ExternalizablePrivateCtor) */ in.readObject();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   233
                throw new Error("Expected InvalidClassException reading ExternalizablePrivateCtor");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   234
            } catch (InvalidClassException e) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   235
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   236
            out.close();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   237
            in.close();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   238
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   239
}