Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2006-10-23 18:18:58 +0000
committerEike Stepper2006-10-23 18:18:58 +0000
commit13984aa28c8f87088022a0557cc858a10c433a0a (patch)
treee11f16355dd42377970dc745caa9d4376c5734f6 /plugins/org.eclipse.net4j/src/org/eclipse/net4j/util/stream/ExtendedDataOutputStream.java
parenta95acf5fcc86191fe51a7e0c8e899bd4614462df (diff)
downloadcdo-13984aa28c8f87088022a0557cc858a10c433a0a.tar.gz
cdo-13984aa28c8f87088022a0557cc858a10c433a0a.tar.xz
cdo-13984aa28c8f87088022a0557cc858a10c433a0a.zip
Signal protocol
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.java32
1 files changed, 32 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
new file mode 100644
index 0000000000..ea6e276e71
--- /dev/null
+++ b/plugins/org.eclipse.net4j/src/org/eclipse/net4j/util/stream/ExtendedDataOutputStream.java
@@ -0,0 +1,32 @@
+/***************************************************************************
+ * Copyright (c) 2004, 2005, 2006 Eike Stepper, Germany.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Eike Stepper - initial API and implementation
+ **************************************************************************/
+package org.eclipse.net4j.util.stream;
+
+import java.io.DataOutputStream;
+import java.io.IOException;
+import java.io.OutputStream;
+
+/**
+ * @author Eike Stepper
+ */
+public class ExtendedDataOutputStream extends DataOutputStream implements ExtendedDataOutput
+{
+ public ExtendedDataOutputStream(OutputStream out)
+ {
+ super(out);
+ }
+
+ public void writeByteArray(byte[] b) throws IOException
+ {
+ writeInt(b.length);
+ write(b);
+ }
+}

Back to the top