MCPcopy Create free account
hub / github.com/codenameone/CodenameOne / setFragment

Method setFragment

vm/JavaAPI/src/java/net/URI.java:422–426  ·  view source on GitHub ↗

Utility method to set the fragment. If parameter encode=true, then the result will be encoded, otherwise the result will be validated to ensure encoding is valid. Typically the multi-parameter constructors will call this method with encode=true, and the single parameter construct will pass encode=fa

(String fragment, boolean encode)

Source from the content-addressed store, hash-verified

420 * @param encode
421 */
422 protected void setFragment(String fragment, boolean encode) {
423 if ((this.fragment = fragment) != null && encode) {
424 this.fragment = URIHelper.encodeString(this.fragment);
425 }
426 }
427
428 /**
429 * Utility method to construct the scheme specific part from the uri

Callers 2

URIMethod · 0.95
parseURIMethod · 0.95

Calls 1

encodeStringMethod · 0.95

Tested by

no test coverage detected