question: 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 ( ) ; }
target:  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.