Author: fhanik Date: Sun Mar 12 17:13:33 2006 New Revision: 385400 URL: http://svn.apache.org/viewcvs?rev=385400&view=rev Log: Added method to the streamable interface
Modified: tomcat/container/tc5.5.x/modules/groupcom/src/share/org/apache/catalina/tribes/tipis/LazyReplicatedMap.java 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/LazyReplicatedMap.java URL: http://svn.apache.org/viewcvs/tomcat/container/tc5.5.x/modules/groupcom/src/share/org/apache/catalina/tribes/tipis/LazyReplicatedMap.java?rev=385400&r1=385399&r2=385400&view=diff ============================================================================== --- tomcat/container/tc5.5.x/modules/groupcom/src/share/org/apache/catalina/tribes/tipis/LazyReplicatedMap.java (original) +++ tomcat/container/tc5.5.x/modules/groupcom/src/share/org/apache/catalina/tribes/tipis/LazyReplicatedMap.java Sun Mar 12 17:13:33 2006 @@ -1000,6 +1000,10 @@ return length; } + public synchronized int read(byte[] data, int offset, int length) throws IOException { + return -1; + } + public DirectByteArrayOutputStream getBuf() { return buf; } 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=385400&r1=385399&r2=385400&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 Sun Mar 12 17:13:33 2006 @@ -46,5 +46,15 @@ * @return int - the number of bytes written into the data buffer */ public int write(byte[] data, int offset) throws IOException; + + /** + * read data into the byte array starting at offset + * @param data byte[] - the array to read data into + * @param offset int - start position for writing data + * @param length - the desired read length + * @return int - the number of bytes read from the data buffer + */ + public int read(byte[] data, int offset, int length) throws IOException; + } --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]