Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 23 for gif (0.16 sec)

  1. src/test/java/org/codelibs/fess/thumbnail/impl/HtmlTagBasedGeneratorTest.java

                generator.saveImage(input, outputFile);
            }
            assertImageSize(outputFile, 100, 66);
    
            imagePath = "thumbnail/600x400.gif";
            try (ImageInputStream input = ImageIO.createImageInputStream(classLoader.getResourceAsStream(imagePath))) {
                generator.saveImage(input, outputFile);
            }
            assertImageSize(outputFile, 100, 66);
    
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 4.1K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/core/net/MimeTypeUtilTest.java

        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testGetFromStream_gif() throws Exception {
            final String path = ClassUtil.getPackageName(this.getClass()).replaceAll("\\.", "/") + "/ccc.gif";
            final String contentType = MimeTypeUtil.guessContentType(path);
            assertEquals("image/gif", contentType);
        }
    
        /**
         * @throws Exception
         */
        @Test
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 2.7K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/MultipartBodyTest.kt

          |Content-Type: text/plain; charset=utf-8
          |
          |... contents of file1.txt ...
          |--BbC04y
          |Content-Disposition: file; filename="file2.gif"
          |Content-Transfer-Encoding: binary
          |Content-Type: image/gif
          |
          |... contents of file2.gif ...
          |--BbC04y--
          |
          |--AaB03x--
          |
          """.trimMargin().replace("\n", "\r\n")
        val body =
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 10.4K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/app/web/thumbnail/ThumbnailAction.java

            final String path = imageFile.getAbsolutePath();
            if (path.endsWith(".png")) {
                return "image/png";
            }
            if (path.endsWith(".gif")) {
                return "image/gif";
            }
            if (path.endsWith(".jpg") || path.endsWith(".jpeg")) {
                return "image/jpeg";
            }
            return "application/octet-stream";
        }
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 3.6K bytes
    - Viewed (0)
  5. mockwebserver/src/test/java/mockwebserver3/internal/http2/Http2Server.kt

            sink.writeAll(source)
          }
        }
      }
    
      private fun contentType(file: File): String {
        return when {
          file.name.endsWith(".css") -> "text/css"
          file.name.endsWith(".gif") -> "image/gif"
          file.name.endsWith(".html") -> "text/html"
          file.name.endsWith(".jpeg") -> "image/jpeg"
          file.name.endsWith(".jpg") -> "image/jpeg"
          file.name.endsWith(".js") -> "application/javascript"
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 6.1K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/net/MediaTypeTest.java

      }
    
      public void testWithoutParameters() {
        assertSame(MediaType.parse("image/gif"), MediaType.parse("image/gif").withoutParameters());
        assertEquals(
            MediaType.parse("image/gif"), MediaType.parse("image/gif; foo=bar").withoutParameters());
      }
    
      public void testWithParameters() {
        assertEquals(
            MediaType.parse("text/plain; a=1; a=2; b=3"),
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Mar 05 13:16:00 GMT 2024
    - 21.4K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/net/MediaTypeTest.java

      }
    
      public void testWithoutParameters() {
        assertSame(MediaType.parse("image/gif"), MediaType.parse("image/gif").withoutParameters());
        assertEquals(
            MediaType.parse("image/gif"), MediaType.parse("image/gif; foo=bar").withoutParameters());
      }
    
      public void testWithParameters() {
        assertEquals(
            MediaType.parse("text/plain; a=1; a=2; b=3"),
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Mar 05 13:16:00 GMT 2024
    - 21.4K bytes
    - Viewed (0)
  8. build-logic/documentation/src/main/groovy/gradlebuild/docs/GradleUserManualPlugin.java

                });
                task.from(extension.getCssFiles(), sub -> sub.into("css"));
                task.from(extension.getUserManual().getRoot().dir("img"), sub -> {
                    sub.include("**/*.png", "**/*.gif", "**/*.jpg", "**/*.svg");
                    sub.into("img");
                });
                task.from(extension.getUserManual().getResources());
    
                task.from(generateDocinfo);
    
    Java
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Fri Mar 01 05:46:51 GMT 2024
    - 17.7K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/thumbnail/impl/HtmlTagBasedGenerator.java

            final String mimeType = responseData.getMimeType();
            if (mimeType == null) {
                return true;
            }
    
            return switch (mimeType) {
            case "image/png", "image/gif", "image/jpeg", "image/bmp" -> true;
            default -> false;
            };
        }
    
        protected Result saveImage(final ImageInputStream input, final File outputFile) throws IOException {
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 7.5K bytes
    - Viewed (0)
  10. okhttp/src/test/java/okhttp3/MediaTypeTest.kt

      }
    
      @Test fun testValidParse() {
        assertMediaType("text/plain")
        assertMediaType("application/atom+xml; charset=utf-8")
        assertMediaType("application/atom+xml; a=1; a=2; b=3")
        assertMediaType("image/gif; foo=bar")
        assertMediaType("text/plain; a=1")
        assertMediaType("text/plain; a=1; a=2; b=3")
        assertMediaType("text/plain; charset=utf-16")
        assertMediaType("text/plain; \t \n \r a=b")
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 7.5K bytes
    - Viewed (0)
Back to top