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

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);}
