Lines Matching defs:fragment
35 * Immutable URI reference. A URI reference includes a URI and a fragment, the
87 components and fragment identifier in order to determine what
172 * scheme separator ':' and the fragment separator '#'. If this is a
183 * scheme separator ':' and the fragment separator '#'. If this is a
268 * the query separator ('?') and before the fragment separator ('#'). This
278 * the query separator ('?') and before the fragment separator ('#'). This
287 * Gets the decoded fragment part of this URI, everything after the '#'.
289 * @return the decoded fragment or null if there isn't one
294 * Gets the encoded fragment part of this URI, everything after the '#'.
296 * @return the encoded fragment or null if there isn't one
449 /** Cached fragment separator index. */
620 private Part fragment;
623 return fragment == null
624 ? fragment = Part.fromEncoded(parseFragment()) : fragment;
661 // Look for the start of the path, query, or fragment, or the
668 case '#': // Start of fragment
702 case '#': // Start of fragment
719 case '#': // Start of fragment
735 .fragment(getFragmentPart());
740 .fragment(getFragmentPart());
751 * scheme separator (':') and the fragment separator ('#'), which will
753 * @param fragment fragment, everything after the '#', null if undefined,
757 * @return Uri composed of the given scheme, ssp, and fragment
759 * @see Builder if you don't want the ssp and fragment to be encoded
762 String fragment) {
771 Part.fromDecoded(fragment));
784 private final Part fragment;
786 private OpaqueUri(String scheme, Part ssp, Part fragment) {
789 this.fragment = fragment == null ? Part.NULL : fragment;
808 fragment.writeTo(parcel);
856 return fragment.getDecoded();
860 return fragment.getEncoded();
901 if (!fragment.isEmpty()) {
902 sb.append('#').append(fragment.getEncoded());
912 .fragment(this.fragment);
1092 private final Part fragment;
1095 Part query, Part fragment) {
1100 this.fragment = Part.nonNull(fragment);
1123 fragment.writeTo(parcel);
1204 return this.fragment.getDecoded();
1208 return this.fragment.getEncoded();
1234 if (!fragment.isEmpty()) {
1235 builder.append('#').append(fragment.getEncoded());
1247 .fragment(fragment);
1256 * {@code <scheme>://<authority><absolute path>?<query>#<fragment>}
1259 * of two patterns: {@code <relative or absolute path>?<query>#<fragment>}
1260 * or {@code //<authority><absolute path>?<query>#<fragment>}
1263 * {@code <scheme>:<opaque part>#<fragment>}
1272 private Part fragment;
1401 Builder fragment(Part fragment) {
1402 this.fragment = fragment;
1407 * Encodes and sets the fragment.
1409 public Builder fragment(String fragment) {
1410 return fragment(Part.fromDecoded(fragment));
1414 * Sets the previously encoded fragment.
1416 public Builder encodedFragment(String fragment) {
1417 return fragment(Part.fromEncoded(fragment));
1462 return new OpaqueUri(scheme, opaquePart, fragment);
1477 scheme, authority, path, query, fragment);