diff options
author | Eike Stepper | 2007-05-12 10:43:29 +0000 |
---|---|---|
committer | Eike Stepper | 2007-05-12 10:43:29 +0000 |
commit | b007a146914bd6d853c2aa2fe44e02b07893a170 (patch) | |
tree | cdf9625ed985607551ec205fd5c6c2feefd7c5aa /plugins/org.eclipse.net4j/src/org/eclipse/net4j/util/stream/ExtendedDataOutputStream.java | |
parent | 243265c8ea999d12b1c56f6fb358c6102060a3e4 (diff) | |
download | cdo-b007a146914bd6d853c2aa2fe44e02b07893a170.tar.gz cdo-b007a146914bd6d853c2aa2fe44e02b07893a170.tar.xz cdo-b007a146914bd6d853c2aa2fe44e02b07893a170.zip |
*** empty log message ***
Diffstat (limited to 'plugins/org.eclipse.net4j/src/org/eclipse/net4j/util/stream/ExtendedDataOutputStream.java')
-rw-r--r-- | plugins/org.eclipse.net4j/src/org/eclipse/net4j/util/stream/ExtendedDataOutputStream.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/plugins/org.eclipse.net4j/src/org/eclipse/net4j/util/stream/ExtendedDataOutputStream.java b/plugins/org.eclipse.net4j/src/org/eclipse/net4j/util/stream/ExtendedDataOutputStream.java index 5fe760a996..762193d609 100644 --- a/plugins/org.eclipse.net4j/src/org/eclipse/net4j/util/stream/ExtendedDataOutputStream.java +++ b/plugins/org.eclipse.net4j/src/org/eclipse/net4j/util/stream/ExtendedDataOutputStream.java @@ -12,6 +12,7 @@ package org.eclipse.net4j.util.stream; import java.io.DataOutputStream; import java.io.IOException; +import java.io.ObjectOutputStream; import java.io.OutputStream; /** @@ -41,4 +42,10 @@ public class ExtendedDataOutputStream extends DataOutputStream implements Extend writeInt(-1); } } + + public void writeObject(Object object) throws IOException + { + ObjectOutputStream wrapper = new ObjectOutputStream(this); + wrapper.writeObject(object); + } } |