@Override public int fill(ByteBuffer buffer) throws IOException { if (_ishut) return -1; int pos=BufferUtil.flipToFill(buffer); try { int filled = _channel.read(buffer); if (LOG.isDebugEnabled()) // Avoid boxing of variable 'filled' LOG.debug("filled {} {}", filled, this); if (filled>0) notIdle(); else if (filled==-1) shutdownInput(); return filled; } catch(IOException e) { LOG.debug(e); shutdownInput(); return -1; } finally { BufferUtil.flipToFlush(buffer,pos); } }
@Override public int fill(ByteBuffer buffer) throws IOException { if (_ishut) return -1; int pos=BufferUtil.flipToFill(buffer); try { int filled = _channel.read(buffer); LOG.debug("filled {} {}", filled, this); if (filled>0) notIdle(); else if (filled==-1) shutdownInput(); return filled; } catch(IOException e) { LOG.debug(e); shutdownInput(); return -1; } finally { BufferUtil.flipToFlush(buffer,pos); } }
@Override public int fill(ByteBuffer buffer) throws IOException { if (_ishut) return -1; int pos=BufferUtil.flipToFill(buffer); try { int filled = _channel.read(buffer); LOG.debug("filled {} {}", filled, this); if (filled>0) notIdle(); else if (filled==-1) shutdownInput(); return filled; } catch(IOException e) { LOG.debug(e); shutdownInput(); return -1; } finally { BufferUtil.flipToFlush(buffer,pos); } }
@Override public int fill(ByteBuffer buffer) throws IOException { if (_ishut) return -1; int pos=BufferUtil.flipToFill(buffer); try { int filled = _channel.read(buffer); if (LOG.isDebugEnabled()) // Avoid boxing of variable 'filled' LOG.debug("filled {} {}", filled, this); if (filled>0) notIdle(); else if (filled==-1) shutdownInput(); return filled; } catch(IOException e) { LOG.debug(e); shutdownInput(); return -1; } finally { BufferUtil.flipToFlush(buffer,pos); } }
@Override public int fill(ByteBuffer buffer) throws IOException { if (isInputShutdown()) return -1; int pos=BufferUtil.flipToFill(buffer); try { int filled = _channel.read(buffer); if (LOG.isDebugEnabled()) // Avoid boxing of variable 'filled' LOG.debug("filled {} {}", filled, this); if (filled>0) notIdle(); else if (filled==-1) shutdownInput(); return filled; } catch(IOException e) { LOG.debug(e); shutdownInput(); return -1; } finally { BufferUtil.flipToFlush(buffer,pos); } }
@Override public int fill(ByteBuffer buffer) throws IOException { if (isInputShutdown()) return -1; int pos=BufferUtil.flipToFill(buffer); int filled; try { filled = _channel.read(buffer); if (filled>0) notIdle(); else if (filled==-1) shutdownInput(); } catch(IOException e) { LOG.debug(e); shutdownInput(); filled = -1; } finally { BufferUtil.flipToFlush(buffer,pos); } if (LOG.isDebugEnabled()) LOG.debug("filled {} {}", filled, BufferUtil.toDetailString(buffer)); return filled; }