You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by fh...@apache.org on 2006/05/05 23:15:21 UTC
svn commit: r400173 -
/tomcat/container/tc5.5.x/modules/groupcom/src/share/org/apache/catalina/tribes/tipis/Streamable.java
Author: fhanik
Date: Fri May 5 14:15:18 2006
New Revision: 400173
URL: http://svn.apache.org/viewcvs?rev=400173&view=rev
Log:
Fixed the streamable interface
Modified:
tomcat/container/tc5.5.x/modules/groupcom/src/share/org/apache/catalina/tribes/tipis/Streamable.java
Modified: tomcat/container/tc5.5.x/modules/groupcom/src/share/org/apache/catalina/tribes/tipis/Streamable.java
URL: http://svn.apache.org/viewcvs/tomcat/container/tc5.5.x/modules/groupcom/src/share/org/apache/catalina/tribes/tipis/Streamable.java?rev=400173&r1=400172&r2=400173&view=diff
==============================================================================
--- tomcat/container/tc5.5.x/modules/groupcom/src/share/org/apache/catalina/tribes/tipis/Streamable.java (original)
+++ tomcat/container/tc5.5.x/modules/groupcom/src/share/org/apache/catalina/tribes/tipis/Streamable.java Fri May 5 14:15:18 2006
@@ -23,7 +23,7 @@
* byte[] data = new byte[1024];
* Streamable st = ....;
* while ( !st.eof() ) {
- * int length = st.read(data,0);
+ * int length = st.read(data,0,data.length);
* String s = new String(data,0,length);
* System.out.println(s);
* }
@@ -45,7 +45,7 @@
* @param offset int - start position for writing data
* @return int - the number of bytes written into the data buffer
*/
- public int write(byte[] data, int offset) throws IOException;
+ public int write(byte[] data, int offset, int length) throws IOException;
/**
* read data into the byte array starting at offset
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org