text: public boolean canEncode(CharSequence sequence) {CharBuffer cb;if (sequence instanceof CharBuffer) {cb = ((CharBuffer) sequence).duplicate();} else {cb = CharBuffer.wrap(sequence);}return implCanEncode(cb);}