title: What's the difference between ChannelBuffer.copy() and ChannelBuffer.duplicate() in netty
body: <p>What's the difference between ChannelBuffer.copy() and ChannelBuffer.duplicate()?</p>
  
  <p>In <a href="https://stackoverflow.com/questions/10197714/multiple-handlers-in-netty">Multiple handlers in netty</a> I ended up coming across a problem that was fixed if I passed a copy of a ChannelBuffer or if I called duplicate on it, but I'm not sure which one should be used, and the javadoc doesn't help to know which one I should be using.</p>