text: public virtual bool canEncode(java.lang.CharSequence sequence){java.nio.CharBuffer cb;if (sequence is java.nio.CharBuffer){cb = ((java.nio.CharBuffer)sequence).duplicate();}else{cb = java.nio.CharBuffer.wrap(sequence);}return implCanEncode(cb);}