Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for withoutParameters (0.1 sec)

  1. guava-tests/test/com/google/common/net/MediaTypeTest.java

        assertTrue(PLAIN_TEXT_UTF_8.is(ANY_TEXT_TYPE));
        assertTrue(PLAIN_TEXT_UTF_8.withoutParameters().is(ANY_TEXT_TYPE));
        assertFalse(JPEG.is(ANY_TEXT_TYPE));
        assertTrue(PLAIN_TEXT_UTF_8.is(PLAIN_TEXT_UTF_8));
        assertTrue(PLAIN_TEXT_UTF_8.is(PLAIN_TEXT_UTF_8.withoutParameters()));
        assertFalse(PLAIN_TEXT_UTF_8.withoutParameters().is(PLAIN_TEXT_UTF_8));
        assertFalse(PLAIN_TEXT_UTF_8.is(HTML_UTF_8));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 15:41:36 UTC 2024
    - 20.4K bytes
    - Viewed (0)
  2. guava/src/com/google/common/net/MediaType.java

     * folding and comments.
     *
     * <p>For media types that take a charset the predefined constants default to UTF-8 and have a
     * "_UTF_8" suffix. To get a version without a character set, use {@link #withoutParameters}.
     *
     * @since 12.0
     * @author Gregory Kick
     */
    @GwtCompatible
    @Immutable
    @ElementTypesAreNonnullByDefault
    public final class MediaType {
      private static final String CHARSET_ATTRIBUTE = "charset";
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Sep 26 19:15:09 UTC 2024
    - 47.5K bytes
    - Viewed (0)
Back to top