Author: david.lloyd(a)jboss.com
Date: 2008-07-17 12:09:45 -0400 (Thu, 17 Jul 2008)
New Revision: 4378
Modified:
remoting3/trunk/core/src/main/java/org/jboss/cx/remoting/core/marshal/OneBufferInputStream.java
Log:
Fix counter problem
Modified:
remoting3/trunk/core/src/main/java/org/jboss/cx/remoting/core/marshal/OneBufferInputStream.java
===================================================================
---
remoting3/trunk/core/src/main/java/org/jboss/cx/remoting/core/marshal/OneBufferInputStream.java 2008-07-17
04:39:05 UTC (rev 4377)
+++
remoting3/trunk/core/src/main/java/org/jboss/cx/remoting/core/marshal/OneBufferInputStream.java 2008-07-17
16:09:45 UTC (rev 4378)
@@ -26,12 +26,15 @@
import java.io.IOException;
import java.io.InterruptedIOException;
import java.nio.ByteBuffer;
+import org.jboss.xnio.log.Logger;
/**
*
*/
public final class OneBufferInputStream extends InputStream {
+ private static final Logger log = Logger.getLogger(OneBufferInputStream.class);
+
private final Object lock;
private ByteBuffer buffer;
private boolean eof;
@@ -101,6 +104,7 @@
buffer.get(b, off, rem);
off += rem;
len -= rem;
+ c += rem;
}
return c;
}
Show replies by date