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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]