public boolean canEncode (CharSequence cs)
public boolean canEncode (char c)
  public boolean canEncode (CharSequence cs)  {    CharBuffer cb;    if (cs instanceof CharBuffer)      cb = ((CharBuffer) cs).duplicate ();    else      cb = CharBuffer.wrap (cs);    return canEncode (cb);  }