Lines 369-375
Link Here
|
369 |
*/ |
369 |
*/ |
370 |
public int write(ByteBuffer src) throws IOException { |
370 |
public int write(ByteBuffer src) throws IOException { |
371 |
//make sure we can handle expand, and that we only use on buffer |
371 |
//make sure we can handle expand, and that we only use on buffer |
372 |
if ( src != bufHandler.getWriteBuffer() ) throw new IllegalArgumentException("You can only write using the application write buffer provided by the handler."); |
372 |
//if ( src != bufHandler.getWriteBuffer() ) throw new IllegalArgumentException("You can only write using the application write buffer provided by the handler."); |
373 |
//are we closing or closed? |
373 |
//are we closing or closed? |
374 |
if ( closing || closed) throw new IOException("Channel is in closing state."); |
374 |
if ( closing || closed) throw new IOException("Channel is in closing state."); |
375 |
|
375 |
|