static boolean copyTo(ByteBuffer inBuffer,CharBuffer outBuffer,CharsetDecoder decoder){
  final CoderResult result=decoder.decode(inBuffer,outBuffer,true);
  decoder.flush(outBuffer);
  return !result.isError() && !result.isOverflow();
}

static boolean copyTo ( ByteBuffer inBuffer , CharBuffer outBuffer , CharsetDecoder decoder ) { final CoderResult result = decoder . decode ( inBuffer , outBuffer , true ) ; decoder . flush ( outBuffer ) ; return ! result . isError ( ) && ! result . isOverflow ( ) ; }
convenience method to copy from a byte buffer to a char buffer using provided decoder to decode bytes into characters . < p > it should not be used directly , prefer instance method of bytestring or bytestringbuilder instead .
