activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rajdav...@apache.org
Subject svn commit: r470721 - /incubator/activemq/trunk/activemq-optional/src/main/java/org/apache/activemq/transport/util/TextWireFormat.java
Date Fri, 03 Nov 2006 08:42:10 GMT
Author: rajdavies
Date: Fri Nov  3 00:42:10 2006
New Revision: 470721

URL: http://svn.apache.org/viewvc?view=rev&rev=470721
Log:
Use Input/Output Stream intefaces instead of concrete classes

Modified:
    incubator/activemq/trunk/activemq-optional/src/main/java/org/apache/activemq/transport/util/TextWireFormat.java

Modified: incubator/activemq/trunk/activemq-optional/src/main/java/org/apache/activemq/transport/util/TextWireFormat.java
URL: http://svn.apache.org/viewvc/incubator/activemq/trunk/activemq-optional/src/main/java/org/apache/activemq/transport/util/TextWireFormat.java?view=diff&rev=470721&r1=470720&r2=470721
==============================================================================
--- incubator/activemq/trunk/activemq-optional/src/main/java/org/apache/activemq/transport/util/TextWireFormat.java
(original)
+++ incubator/activemq/trunk/activemq-optional/src/main/java/org/apache/activemq/transport/util/TextWireFormat.java
Fri Nov  3 00:42:10 2006
@@ -17,11 +17,12 @@
  */
 package org.apache.activemq.transport.util;
 
+import java.io.DataInput;
 import java.io.DataInputStream;
+import java.io.DataOutput;
 import java.io.DataOutputStream;
 import java.io.IOException;
 import java.io.Reader;
-
 import org.apache.activemq.util.ByteArrayInputStream;
 import org.apache.activemq.util.ByteArrayOutputStream;
 import org.apache.activemq.util.ByteSequence;
@@ -38,11 +39,11 @@
     public abstract Object unmarshalText(Reader reader);
     public abstract String marshalText(Object command);
 
-    public void marshal(Object command, DataOutputStream out) throws IOException {
+    public void marshal(Object command, DataOutput out) throws IOException {
         out.writeUTF(marshalText(command));
     }
 
-    public Object unmarshal(DataInputStream in) throws IOException {
+    public Object unmarshal(DataInput in) throws IOException {
         String text = in.readUTF();
         return unmarshalText(text);
 	}



Mime
View raw message