Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for createTextType (0.08 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. android/guava/src/com/google/common/net/MediaType.java

      }
    
      /**
       * Creates a media type with the "text" type and the given subtype.
       *
       * @throws IllegalArgumentException if subtype is invalid
       */
      static MediaType createTextType(String subtype) {
        return create(TEXT_TYPE, subtype);
      }
    
      /**
       * Creates a media type with the "video" type and the given subtype.
       *
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Oct 02 01:46:40 GMT 2025
    - 48K bytes
    - Click Count (0)
  2. guava-tests/test/com/google/common/net/MediaTypeTest.java

        assertThat(newType.type()).isEqualTo("image");
        assertThat(newType.subtype()).isEqualTo("yams");
      }
    
      public void testCreateTextType() {
        MediaType newType = MediaType.createTextType("yams");
        assertThat(newType.type()).isEqualTo("text");
        assertThat(newType.subtype()).isEqualTo("yams");
      }
    
      public void testCreateVideoType() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 17 16:11:48 GMT 2026
    - 20.4K bytes
    - Click Count (0)
Back to Top