KLALB V3.4
This commit is contained in:
@@ -2,6 +2,7 @@ package org.kne.io;
|
||||
|
||||
import java.io.EOFException;
|
||||
import java.io.IOException;
|
||||
import java.nio.BufferOverflowException;
|
||||
import java.nio.ByteBuffer;
|
||||
import java.nio.channels.ReadableByteChannel;
|
||||
import java.nio.channels.SocketChannel;
|
||||
@@ -33,7 +34,11 @@ public class KNEChannels {
|
||||
int opos=src.position();
|
||||
//System.out.println(bbf+" "+src);
|
||||
//FastLib .bufferPut(bbf,src);
|
||||
try {
|
||||
bbf.put(src);
|
||||
}catch(BufferOverflowException e) {
|
||||
throw new IOException(src.toString()+" "+bbf.toString(), e);
|
||||
}
|
||||
return src.position()-opos;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user