Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 47 for getResourceAsStream (0.22 sec)

  1. src/test/java/org/codelibs/core/net/MimeTypeUtilTest.java

            final String path = ClassUtil.getPackageName(this.getClass()).replaceAll("\\.", "/") + "/bbb.html";
            final String s = URLConnection.guessContentTypeFromStream(ResourceUtil.getResourceAsStream(path));
            assertNull(s);
            final String contentType = MimeTypeUtil.guessContentType(path);
            assertEquals("text/html", contentType);
        }
    
        /**
         * Test method for
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/util/GsaConfigParserTest.java

        }
    
        public void test_parse() throws IOException {
            GsaConfigParser parser = new GsaConfigParser();
            try (InputStream is = ResourceUtil.getResourceAsStream("data/gsaconfig.xml")) {
                parser.parse(new InputSource(is));
            }
            parser.getWebConfig().ifPresent(c -> {
                logger.debug(c.toString());
            }).orElse(() -> fail());
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  3. compat/maven-model-builder/src/main/java/org/apache/maven/model/superpom/DefaultSuperPomProvider.java

            return SUPER_MODELS.computeIfAbsent(Objects.requireNonNull(version), v -> {
                String resource = "/org/apache/maven/model/pom-" + v + ".xml";
    
                InputStream is = getClass().getResourceAsStream(resource);
    
                if (is == null) {
                    throw new IllegalStateException("The super POM " + resource + " was not found"
                            + ", please verify the integrity of your Maven installation");
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/suggest/Suggester.java

            final StringBuilder mappingSource = new StringBuilder();
            try (BufferedReader br = new BufferedReader(new InputStreamReader(
                    this.getClass().getClassLoader().getResourceAsStream("suggest_indices/suggest/mappings-default.json")))) {
    
                String line;
                while ((line = br.readLine()) != null) {
                    mappingSource.append(line);
                }
            }
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Sat Oct 12 00:10:39 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  5. compat/maven-model-builder/src/test/java/org/apache/maven/model/inheritance/MergerTest.java

    import static org.junit.jupiter.api.Assertions.assertNotNull;
    
    class MergerTest {
    
        @Test
        void testMergerPreserveLocations() throws Exception {
            try (InputStream is = getClass().getResourceAsStream("/poms/factory/complex.xml")) {
    
                InputSource inputSource = new InputSource(null, "classpath:/poms/factory/complex.xml");
                Model model = new MavenStaxReader().read(is, true, inputSource);
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb1/util/MimeMap.java

        private byte[] in;
        private int inLen;
    
        public MimeMap() throws IOException {
            int n;
    
            in = new byte[IN_SIZE];
            InputStream is = getClass().getClassLoader().getResourceAsStream( "jcifs/smb1/util/mime.map" );
    
            inLen = 0;
            while(( n = is.read( in, inLen, IN_SIZE - inLen )) != -1 ) {
                inLen += n;
            }
            if( inLen < 100 || inLen == IN_SIZE ) {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 20:39:42 UTC 2019
    - 4.2K bytes
    - Viewed (0)
  7. compat/maven-compat/src/main/java/org/apache/maven/usability/plugin/ExpressionDocumenter.java

                ClassLoader docLoader = initializeDocLoader();
    
                for (String root : EXPRESSION_ROOTS) {
                    try (InputStream docStream =
                            docLoader.getResourceAsStream(EXPRESSION_DOCO_ROOTPATH + root + ".paramdoc.xml")) {
                        if (docStream != null) {
                            Map<String, Expression> doco = parseExpressionDocumentation(docStream);
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/suggest/settings/AnalyzerSettings.java

            final StringBuilder sb = new StringBuilder();
            try (BufferedReader br =
                    new BufferedReader(new InputStreamReader(this.getClass().getClassLoader().getResourceAsStream(getSuggestAnalyzerPath())))) {
    
                String line;
                while ((line = br.readLine()) != null) {
                    sb.append(line);
                }
            }
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Sat Oct 12 00:10:39 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/WebPlatformUrlTest.kt

            "Parsing: <http://0Xc0.0250.01> against <http://other.com/>",
          )
    
        private fun loadTests(): List<WebPlatformUrlTestData> {
          val resourceAsStream =
            WebPlatformUrlTest::class.java.getResourceAsStream(
              "/web-platform-test-urltestdata.txt",
            )
          val source = resourceAsStream.source().buffer()
          return WebPlatformUrlTestData.load(source)
        }
      }
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  10. compat/maven-plugin-api/src/test/java/org/apache/maven/plugin/descriptor/PluginDescriptorBuilderTest.java

     *
     */
    class PluginDescriptorBuilderTest {
    
        private PluginDescriptor build(String resource) throws IOException, PlexusConfigurationException {
            try (InputStream is = getClass().getResourceAsStream(resource)) {
                return new PluginDescriptorBuilder().build(is, null);
            }
        }
    
        @Test
        void testBuildReader() throws Exception {
            PluginDescriptor pd = build("/plugin.xml");
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.4K bytes
    - Viewed (0)
Back to top