tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From violet...@apache.org
Subject svn commit: r1762204 - /tomcat/trunk/test/org/apache/coyote/http11/filters/TesterOutputBuffer.java
Date Sun, 25 Sep 2016 14:21:02 GMT
Author: violetagg
Date: Sun Sep 25 14:21:02 2016
New Revision: 1762204

URL: http://svn.apache.org/viewvc?rev=1762204&view=rev
Log:
Implement the method in the test as it is used now.

Modified:
    tomcat/trunk/test/org/apache/coyote/http11/filters/TesterOutputBuffer.java

Modified: tomcat/trunk/test/org/apache/coyote/http11/filters/TesterOutputBuffer.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/test/org/apache/coyote/http11/filters/TesterOutputBuffer.java?rev=1762204&r1=1762203&r2=1762204&view=diff
==============================================================================
--- tomcat/trunk/test/org/apache/coyote/http11/filters/TesterOutputBuffer.java (original)
+++ tomcat/trunk/test/org/apache/coyote/http11/filters/TesterOutputBuffer.java Sun Sep 25
14:21:02 2016
@@ -112,7 +112,10 @@ public class TesterOutputBuffer extends
 
         @Override
         public int doWrite(ByteBuffer chunk) throws IOException {
-            throw new UnsupportedOperationException();
+            int length = chunk.remaining();
+            outputStream.write(chunk.array(), chunk.arrayOffset() + chunk.position(), length);
+            byteCount += length;
+            return length;
         }
 
         @Override



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message